Move aws ses dkim keys into terraform
This commit is contained in:
parent
e17156a8ca
commit
6f9f888478
12 changed files with 95 additions and 20 deletions
16
Makefile
16
Makefile
|
@ -20,8 +20,7 @@ PWD := $(shell pwd)
|
|||
> ./inventory/group_vars/all/opentofu.yml
|
||||
|
||||
./dns/hosts.json: .FORCE
|
||||
tofu output --json \
|
||||
| jq 'with_entries(.value |= .value).hosts' \
|
||||
tofu output --json hosts \
|
||||
> ./dns/hosts.json
|
||||
|
||||
./dns/services.json: ./inventory/group_vars/all/all_services.yml
|
||||
|
@ -29,9 +28,16 @@ PWD := $(shell pwd)
|
|||
-e services_json_file=$(PWD)/dns/services.json \
|
||||
playbooks/create_services_for_dnscontrol.yml
|
||||
|
||||
./dns/dkim-ses.json: .FORCE
|
||||
tofu output --json aws_ses_dkim \
|
||||
> ./dns/dkim-ses.json
|
||||
|
||||
output: ./dns/hosts.json ./dns/services.json ./inventory/group_vars/all/opentofu.yml
|
||||
|
||||
output-dns: ./dns/hosts.json ./dns/services.json ./dns/dkim-ses.json
|
||||
|
||||
output-ansible: ./inventory/group_vars/all/opentofu.yml
|
||||
|
||||
output: output-dns output-ansible
|
||||
|
||||
./types-dnscontrol.d.ts:
|
||||
dnscontrol write-types
|
||||
|
@ -41,10 +47,10 @@ tofu:
|
|||
@printf "\n=====\n\n"
|
||||
$(MAKE) output
|
||||
|
||||
dns: ./types-dnscontrol.d.ts ./dns/hosts.json ./dns/services.json
|
||||
dns: output-dns
|
||||
dnscontrol push
|
||||
|
||||
dns-check: ./types-dnscontrol.d.ts ./dns/hosts.json ./dns/services.json
|
||||
dns-check: output-dns
|
||||
dnscontrol check-creds ovh
|
||||
|
||||
all:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue