Move aws ses dkim keys into terraform

This commit is contained in:
Tobias Reisinger 2024-10-22 17:44:00 +02:00
parent e17156a8ca
commit 6f9f888478
Signed by: serguzim
GPG key ID: 13AD60C237A28DFE
12 changed files with 95 additions and 20 deletions

View file

@ -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: