This sets up dnsdist. Note: this role is in development and cannot be considered stable at the moment.
Ansible 2.0+.
A list of dnsdist ACLS (netmasks) to add to the configuration.
The IP address of the Carbon server that shoudl receive metrics.
A string containing the full config for dnsdist. This is copied verbatim to the dnsdist.conf file.
The IP address to listen on for the control socket.
A list of IP addresses dnsdist should listen on.
When dnsdist_repo_provider
is set to 'powerdns', use packages from this branch. By default this is 'master', but can be set to '10' for 1.0.X releases.
When this is set to 'powerdns' (the default), the PowerDNS dnsdist repositories are added and dnsdist is installed from there. Set this to 'os' to use the distribution provided packages.
A list of IP addresses denoting the downstream DNS servers in the default pool.
A string that has the key for the dnsdist client.
Set to 'latest', set this to a specific version (or wildcard like '1.0*') to install a specific dnsdist version.
The IP address where the built-in webserver should listen, empty (and thus disabled) by default.
The password for the webserver. Must be set when dnsdist_webserver_address is set.
- hosts: localhost
remote_user: root
roles:
- {role: dnsdist,
dnsdist_servers: ['8.8.8.8', '8.8.4.4'],
dnsdist_webserver_password: 'geheim'}
- hosts: localhost
remote_user: root
roles:
- { role: dnsdist,
dnsdist_config: |
setACL("127.0.0.1/8")
newServer("192.0.2.53")
}
GPLv2
Pieter Lexis (PowerDNS) pieter.lexis@powerdns.com