From d396526a4a8dc5a57a828b419b232ae59a26a6d3 Mon Sep 17 00:00:00 2001 From: Simon Marsh Date: Mon, 1 Aug 2022 14:50:27 +0100 Subject: [PATCH] dnscontrol udpate --- ansible.cfg | 4 ++-- creds.json | 2 ++ dnsconfig.js | 7 ++++--- inventory.yml | 2 +- 4 files changed, 9 insertions(+), 6 deletions(-) diff --git a/ansible.cfg b/ansible.cfg index 8a1ee07..d399a25 100644 --- a/ansible.cfg +++ b/ansible.cfg @@ -1,5 +1,5 @@ [defaults] inventory=inventory.yml -strategy_plugins = /opt/mitogen-0.2.9/ansible_mitogen/plugins -strategy = mitogen_linear +#strategy_plugins = /opt/mitogen-0.2.9/ansible_mitogen/plugins +#strategy = mitogen_linear diff --git a/creds.json b/creds.json index dbde9e6..2c7ebc1 100644 --- a/creds.json +++ b/creds.json @@ -1,10 +1,12 @@ { "powerdns": { + "TYPE": "POWERDNS", "apiUrl": "http://dns-burble.tier2.fr-rbx2.burble.dn42:8081", "apiKey": "$PDNS_API_KEY", "serverName": "localhost" }, "cloudflare": { + "TYPE": "CLOUDFLAREAPI", "apitoken": "$CLOUDFLARE_API_KEY" } } diff --git a/dnsconfig.js b/dnsconfig.js index ac773de..44f5027 100644 --- a/dnsconfig.js +++ b/dnsconfig.js @@ -1,15 +1,16 @@ ////////////////////////////////////////////////////////////////////////// // providers section -var REG_NONE = NewRegistrar('none', 'NONE'); +var REG_NONE = NewRegistrar('none'); var PDNS = NewDnsProvider( 'powerdns', - 'POWERDNS', { 'dnssec_on_create': true } ); -var CF = NewDnsProvider('cloudflare', 'CLOUDFLAREAPI'); +var CF = NewDnsProvider( + 'cloudflare' +); ////////////////////////////////////////////////////////////////////////// // turn off cloudflare proxying by default diff --git a/inventory.yml b/inventory.yml index 29948c6..6dbf383 100644 --- a/inventory.yml +++ b/inventory.yml @@ -11,8 +11,8 @@ all: docker: hosts: - uk-lon1.burble.com: fr-rbx1.burble.com: + fr-par1.burble.com: ca-bhs2.burble.com: de-fra1.burble.com: ch-zur1.burble.com: