dns: Extracted role entries from server_entries

dehydrated
Felix Stupp 5 years ago
parent 39771c907f
commit 55b27c041b
Signed by: zocker
GPG Key ID: 93E1BD26F6B02FB7

@ -0,0 +1,12 @@
---
# domain (of service running, can be replaced by dns_zone_name and entries_name)
dns_zone_domain: "{{ lookup('pipe', global_public_key_directory|quote + '/dns_zone.py ' + domain|quote) }}" # domain of dns zone
dns_system_domain: "{{ lookup('file', global_dns_list_directory + '/' + dns_zone_domain) }}" # domain of dns authority server
entries_name: "{{ domain }}" # Name for zone part file
domain_environment_directory: "{{ global_dns_zones_environment_directory }}/{{ dns_zone_domain }}" # SYNC role dns/master
domain_zone_file: "{{ domain_environment_directory }}/{{ entries_name }}.db"
# entries (in bind zone file format)

@ -0,0 +1,3 @@
---
allow_duplicates: yes

@ -23,4 +23,3 @@
state: reloaded
when: result_rebuild_zone.changed
delegate_to: "{{ dns_system_domain }}"

@ -6,7 +6,7 @@ domain_directory: "{{ zones_directory }}/{{ domain }}"
configuration_file: "{{ domain_directory }}/zone.conf"
database_file: "{{ domain_directory }}/{{ zones_environment_database_name }}"
keys_directory: "{{ domain_directory }}/keys"
domain_environment_directory: "{{ global_dns_zones_environment_directory }}/{{ domain }}" # SYNC role dns/server_entries
domain_environment_directory: "{{ global_dns_zones_environment_directory }}/{{ domain }}" # SYNC role dns/entries
dns_list_file: "{{ global_dns_list_directory }}/{{ domain }}"

@ -1,13 +1,8 @@
---
# domain (of service running)
dns_zone_domain: "{{ lookup('pipe', global_public_key_directory|quote + '/dns_zone.py ' + domain|quote) }}" # domain of dns zone
dns_system_domain: "{{ lookup('file', global_dns_list_directory + '/' + dns_zone_domain) }}" # domain of dns authority server
service_system_domain: "{{ inventory_hostname }}" # domain of server running the service
domain_environment_directory: "{{ global_dns_zones_environment_directory }}/{{ dns_zone_domain }}" # SYNC role dns/master
domain_zone_file: "{{ domain_environment_directory }}/{{ domain }}.db"
entries: |
{{ ip_entries }}
{{ custom_entries }}

@ -1,3 +1,8 @@
---
allow_duplicates: yes
dependencies:
- role: dns/entries
# domain
# entries

Loading…
Cancel
Save