blob: 2d126685d41bc444806b0c8a8fa573bd67b1de13 [file] [log] [blame]
{%- set server = salt['grains.filter_by']({
'Debian': {
'pkgs': ['bind9', 'bind9utils'],
'service': 'bind9',
'config': '/etc/bind/named.conf',
'local_config': '/etc/bind/named.conf.local',
'options_config': '/etc/bind/named.conf.options',
'default_zones_config': '/etc/bind/named.conf.default-zones',
'named_dir': '/var/cache/bind/zones',
'rndc_key': '/etc/rndc.key',
'user': 'bind',
'group': 'bind'
},
'RedHat': {
'pkgs': ['bind'],
'service': 'named',
'config': '/etc/named.conf',
'local_config': '/etc/named.conf.local',
'named_dir': '/var/named/data',
'rndc_key': '/etc/rndc.key',
'user': 'root',
'group': 'named'
},
}, merge=salt['pillar.get']('bind:server')) %}