mirror of
https://github.com/saltstack-formulas/bind-formula.git
synced 2025-04-17 02:00:23 +00:00
fix broken zones_source_dir on RedHat/Debian
Als add docs for how to overwrite the path. Fixes saltstack-formulas/bind-formula#60?
This commit is contained in:
parent
8b52b73753
commit
264c296672
3 changed files with 9 additions and 2 deletions
|
@ -24,6 +24,10 @@ Install the bind package and start the bind service.
|
||||||
---------------
|
---------------
|
||||||
|
|
||||||
Manage the bind configuration file.
|
Manage the bind configuration file.
|
||||||
|
Zone files are not generated by this state
|
||||||
|
rather than taken from `salt://zones`.
|
||||||
|
See `pillar.example` for how to overwrite
|
||||||
|
this URL.
|
||||||
|
|
||||||
Example Pillar
|
Example Pillar
|
||||||
==============
|
==============
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
'pkgs': ['bind9', 'bind9utils', 'dnssec-tools'],
|
'pkgs': ['bind9', 'bind9utils', 'dnssec-tools'],
|
||||||
'service': 'bind9',
|
'service': 'bind9',
|
||||||
'config_source_dir': 'bind/files/debian',
|
'config_source_dir': 'bind/files/debian',
|
||||||
'zones_source_dir': '/srv/salt/zones',
|
'zones_source_dir': 'zones',
|
||||||
'config': '/etc/bind/named.conf',
|
'config': '/etc/bind/named.conf',
|
||||||
'local_config': '/etc/bind/named.conf.local',
|
'local_config': '/etc/bind/named.conf.local',
|
||||||
'key_config': '/etc/bind/named.conf.key',
|
'key_config': '/etc/bind/named.conf.key',
|
||||||
|
@ -20,7 +20,7 @@
|
||||||
'pkgs': ['bind'],
|
'pkgs': ['bind'],
|
||||||
'service': 'named',
|
'service': 'named',
|
||||||
'config_source_dir': 'bind/files/redhat',
|
'config_source_dir': 'bind/files/redhat',
|
||||||
'zones_source_dir': '/srv/salt/zones',
|
'zones_source_dir': 'zones',
|
||||||
'config': '/etc/named.conf',
|
'config': '/etc/named.conf',
|
||||||
'local_config': '/etc/named.conf.local',
|
'local_config': '/etc/named.conf.local',
|
||||||
'default_config': '/etc/sysconfig/named',
|
'default_config': '/etc/sysconfig/named',
|
||||||
|
|
|
@ -3,6 +3,9 @@ bind:
|
||||||
pkgs:
|
pkgs:
|
||||||
- bind
|
- bind
|
||||||
service: named
|
service: named
|
||||||
|
# take zonefiles from `salt://bind/zonedata`
|
||||||
|
# instead of `salt://zones`:
|
||||||
|
zones_source_dir: bind/zonedata
|
||||||
|
|
||||||
bind:
|
bind:
|
||||||
config:
|
config:
|
||||||
|
|
Loading…
Add table
Reference in a new issue