This package contains a DNS provider module for Caddy. It can be used to manage DNS records with Bluecat Address Manager.
dns.providers.bluecat
To use this module for the ACME DNS challenge, configure the ACME issuer in your Caddy JSON like so:
{
"module": "acme",
"challenges": {
"dns": {
"provider": {
"name": "bluecat",
"server_url": "{env.BLUECAT_SERVER_URL}",
"username": "{env.BLUECAT_USERNAME}",
"password": "{env.BLUECAT_PASSWORD}",
"configuration_name": "{env.BLUECAT_CONFIGURATION_NAME}",
"view_name": "{env.BLUECAT_VIEW_NAME}",
"deploy_delay: "5s"
}
}
}
}or with the Caddyfile:
# globally
{
acme_dns bluecat {
server_url {env.BLUECAT_SERVER_URL}
username {env.BLUECAT_USERNAME}
password {env.BLUECAT_PASSWORD}
configuration_name {env.BLUECAT_CONFIGURATION_NAME} # optional
view_name {env.BLUECAT_VIEW_NAME} # optional
deploy_delay 5s # optional
}
}# one site
tls {
# Needed for spit-horizon DNS
resolvers 1.1.1.1
dns bluecat {
server_url {env.BLUECAT_SERVER_URL}
username {env.BLUECAT_USERNAME}
password {env.BLUECAT_PASSWORD}
configuration_name {env.BLUECAT_CONFIGURATION_NAME} # optional
view_name {env.BLUECAT_VIEW_NAME} # optional
deploy_delay 5s # optional
}
}- server_url (required): The base URL of your Bluecat Address Manager server (e.g.,
https://bluecat.example.com) - username (required): Username for authenticating with the Bluecat API
- password (required): Password for authenticating with the Bluecat API
- configuration_name (optional): Bluecat configuration name (defaults to first available)
- view_name (optional): Bluecat view name (defaults to first available)
- deploy_delay_ (optional): Caddy duration string used to batch same-zone quick deploys before one Bluecat deploy is sent, for example
5s
If you'd rather directly add the config items you can forgo the .env file.