|
4 | 4 | description: Default BIND9 Pool |
5 | 5 | attributes: {} |
6 | 6 | ns_records: |
7 | | -{% if designate_ns_record is string %} |
| 7 | +{% if designate_ns_record is string %} |
8 | 8 | - hostname: {{ designate_ns_record }}. |
9 | 9 | priority: 1 |
10 | | -{% else %} |
11 | | -{% for host in designate_ns_record %} |
| 10 | +{% else %} |
| 11 | +{% for host in designate_ns_record %} |
12 | 12 | - hostname: {{ host }}. |
13 | 13 | priority: 1 |
14 | | -{% endfor %} |
15 | | -{% endif %} |
| 14 | +{% endfor %} |
| 15 | +{% endif %} |
16 | 16 | nameservers: |
17 | | -{% if designate_backend == 'bind9' %} |
18 | | -{% for host in groups['designate-backend-bind9'] %} |
| 17 | +{% if designate_backend == 'bind9' %} |
| 18 | +{% for host in groups['designate-backend-bind9'] %} |
19 | 19 | - host: {{ 'api' | kolla_address(host) }} |
20 | 20 | port: {{ designate_bind_port }} |
21 | | -{% endfor %} |
22 | | -{% elif designate_backend_external == 'bind9' %} |
23 | | -{% for host in designate_backend_external_bind9_nameservers.replace(" ", "").split(',') %} |
| 21 | +{% endfor %} |
| 22 | +{% elif designate_backend_external == 'bind9' %} |
| 23 | +{% for host in designate_backend_external_bind9_nameservers.replace(" ", "").split(',') %} |
24 | 24 | - host: {{ host }} |
25 | 25 | port: {{ designate_bind_port }} |
26 | | -{% endfor %} |
27 | | -{% endif %} |
| 26 | +{% endfor %} |
| 27 | +{% endif %} |
28 | 28 | targets: |
29 | | -{% if designate_backend == 'bind9' %} |
30 | | -{% for bind_host in groups['designate-backend-bind9'] %} |
| 29 | +{% if designate_backend == 'bind9' %} |
| 30 | +{% for bind_host in groups['designate-backend-bind9'] %} |
31 | 31 | - type: bind9 |
32 | 32 | description: BIND9 Server {{ 'api' | kolla_address(bind_host) }} |
33 | 33 | masters: |
34 | | -{% for mdns_host in groups['designate-mdns'] %} |
| 34 | +{% for mdns_host in groups['designate-mdns'] %} |
35 | 35 | - host: {{ 'dns' | kolla_address(mdns_host) }} |
36 | 36 | port: {{ designate_mdns_port }} |
37 | | -{% endfor %} |
| 37 | +{% endfor %} |
38 | 38 | options: |
39 | 39 | host: {{ 'api' | kolla_address(bind_host) }} |
40 | 40 | port: {{ designate_bind_port }} |
41 | 41 | rndc_host: {{ 'api' | kolla_address(bind_host) }} |
42 | 42 | rndc_port: {{ designate_rndc_port }} |
43 | 43 | rndc_key_file: /etc/designate/rndc.key |
44 | | -{% endfor %} |
45 | | -{% elif designate_backend_external == 'bind9' %} |
46 | | -{% for bind_host in designate_backend_external_bind9_nameservers.replace(" ", "").split(',') %} |
| 44 | +{% endfor %} |
| 45 | +{% elif designate_backend_external == 'bind9' %} |
| 46 | +{% for bind_host in designate_backend_external_bind9_nameservers.replace(" ", "").split(',') %} |
47 | 47 | - type: bind9 |
48 | 48 | description: BIND9 Server {{ bind_host }} |
49 | 49 | masters: |
50 | | -{% for mdns_host in groups['designate-mdns'] %} |
| 50 | +{% for mdns_host in groups['designate-mdns'] %} |
51 | 51 | - host: {{ 'dns' | kolla_address(mdns_host) }} |
52 | 52 | port: {{ designate_mdns_port }} |
53 | | -{% endfor %} |
| 53 | +{% endfor %} |
54 | 54 | options: |
55 | 55 | host: {{ bind_host }} |
56 | 56 | port: {{ designate_bind_port }} |
57 | 57 | rndc_host: {{ bind_host }} |
58 | 58 | rndc_port: {{ designate_rndc_port }} |
59 | 59 | rndc_key_file: /etc/designate/rndc.key |
60 | | -{% endfor %} |
61 | | -{% endif %} |
| 60 | +{% endfor %} |
| 61 | +{% endif %} |
62 | 62 | {% elif designate_backend == 'infoblox' %} |
63 | 63 | - name: infoblox |
64 | 64 | id: {{ designate_pool_id }} |
|
69 | 69 | - hostname: {{ designate_ns_record }}. |
70 | 70 | priority: 1 |
71 | 71 | nameservers: |
72 | | -{% for host in designate_backend_infoblox_nameservers.replace(" ", "").split(',') %} |
| 72 | +{% for host in designate_backend_infoblox_nameservers.replace(" ", "").split(',') %} |
73 | 73 | - host: {{ host }} |
74 | 74 | port: {{ designate_bind_port }} |
75 | | -{% endfor %} |
| 75 | +{% endfor %} |
76 | 76 | also_notifies: |
77 | | -{% for host in designate_backend_infoblox_nameservers.replace(" ", "").split(',') %} |
| 77 | +{% for host in designate_backend_infoblox_nameservers.replace(" ", "").split(',') %} |
78 | 78 | - host: {{ host }} |
79 | 79 | port: {{ designate_bind_port }} |
80 | | -{% endfor %} |
| 80 | +{% endfor %} |
81 | 81 | targets: |
82 | 82 | - type: infoblox |
83 | 83 | description: Default Infoblox Pool |
84 | 84 | masters: |
85 | | -{% for mdns_host in groups['designate-mdns'] %} |
| 85 | +{% for mdns_host in groups['designate-mdns'] %} |
86 | 86 | - host: {{ 'dns' | kolla_address(mdns_host) }} |
87 | 87 | port: {{ designate_mdns_port }} |
88 | | -{% endfor %} |
| 88 | +{% endfor %} |
89 | 89 | options: |
90 | 90 | host: {{ designate_infoblox_host }} |
91 | 91 | port: 53 |
|
0 commit comments