-
Notifications
You must be signed in to change notification settings - Fork 1
/
pdns_mycluster.yml
46 lines (43 loc) · 1.24 KB
/
pdns_mycluster.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
# this playbook uses https://github.com/PowerDNS/pdns-ansible.git
# Masters definition
- hosts: masters
roles:
- { role: preinstall }
- { role: sqlite_master_config }
- { role: PowerDNS.pdns }
- { role: poweradmin }
vars:
pdns_package_version: "4.4.0"
pdns_config:
master: true
slave: false
local-address: "{{ ansible_all_ipv4_addresses }}"
prevent-self-notification: true
api: yes
api-key: "{{ master_api_key }}"
allow-axfr-ips: "192.168.0.198,192.168.0.200,192.168.0.201,192.168.0.202"
pdns_service_state: "started"
pdns_service_enabled: "yes"
pdns_backends:
gsqlite3:
database: "/{{ db_folder }}/{{ db_file }}"
dnssec: false
# Slave/s definition
# Slave Server Set A
- hosts: slaves_group_1,slaves_group_2
roles:
- { role: preinstall }
- { role: PowerDNS.pdns }
- { role: sqlite_slave_config }
vars:
pdns_config:
master: false
slave: true
superslave: true
allow-axfr-ips: "{{ master_ip }},192.168.0.0/24"
allow-notify-from: "{{ master_ip }}"
local-address: "{{ ansible_all_ipv4_addresses }}"
pdns_backends:
gsqlite3:
database: "/{{ db_folder }}/{{ db_file }}"
dnssec: false