Add support for ClouDNS provider

This commit is contained in:
Koen Rouwhorst 2020-02-15 17:01:26 +01:00
parent 170d87f800
commit 58f3cef74b
2 changed files with 17 additions and 0 deletions

View file

@ -117,6 +117,13 @@ set.
- `CLOUDFLARE_ACCOUNT_ID` (optional)
- `CLOUDFLARE_ACCOUNT_NAME` (optional)
### ClouDNS
[Documentation](https://stackexchange.github.io/dnscontrol/providers/cloudns)
- `CLOUDNS_AUTH_ID`
- `CLOUDNS_AUTH_PASSWORD`
### DigitalOcean
[Documentation](https://stackexchange.github.io/dnscontrol/providers/digitalocean)

View file

@ -22,6 +22,9 @@ CLOUDFLARE_API_KEY="${INPUT_CLOUDFLAREAPIKEY:-$CLOUDFLARE_API_KEY}"
CLOUDFLARE_ACCOUNT_ID="${INPUT_CLOUDFLAREACCOUNTID:-$CLOUDFLARE_ACCOUNT_ID}"
CLOUDFLARE_ACCOUNT_NAME="${INPUT_CLOUDFLAREACCOUNTNAME:-$CLOUDFLARE_ACCOUNT_NAME}"
CLOUDNS_AUTH_ID="${INPUT_CLOUDNSAUTHID:-$CLOUDNS_AUTH_ID}"
CLOUDNS_AUTH_PASSWORD="${INPUT_CLOUDNSPASSWORD:-$CLOUDNS_AUTH_PASSWORD}"
DIGITALOCEAN_OAUTH_TOKEN="${INPUT_DIGITALOCEANOAUTHTOKEN:-$DIGITALOCEAN_OAUTH_TOKEN}"
DNSIMPLE_ACCOUNT_ACCESS_TOKEN="${INPUT_DNSIMPLEACCOUNTACCESSTOKEN:-$DNSIMPLE_ACCOUNT_ACCESS_TOKEN}"
@ -100,6 +103,13 @@ then
fi
fi
if [[ -n "$CLOUDNS_AUTH_ID" && -n "$CLOUDNS_AUTH_PASSWORD" ]]
then
# NOTE: https://stackexchange.github.io/dnscontrol/providers/cloudns
add_key ".cloudns.auth-id" "\$CLOUDNS_AUTH_ID"
add_key ".cloudns.auth-password" "\$CLOUDNS_AUTH_PASSWORD"
fi
if [[ -n "$DIGITALOCEAN_OAUTH_TOKEN" ]]
then
# NOTE: https://stackexchange.github.io/dnscontrol/providers/digitalocean