blob: 2d126685d41bc444806b0c8a8fa573bd67b1de13 [file] [log] [blame]
Ales Komarekfbfa1682014-09-22 11:31:14 +02001
2{%- set server = salt['grains.filter_by']({
3 'Debian': {
4 'pkgs': ['bind9', 'bind9utils'],
5 'service': 'bind9',
6 'config': '/etc/bind/named.conf',
7 'local_config': '/etc/bind/named.conf.local',
8 'options_config': '/etc/bind/named.conf.options',
9 'default_zones_config': '/etc/bind/named.conf.default-zones',
10 'named_dir': '/var/cache/bind/zones',
11 'rndc_key': '/etc/rndc.key',
Ales Komarekef1b6392014-09-29 11:25:07 +020012 'user': 'bind',
Ales Komarekfbfa1682014-09-22 11:31:14 +020013 'group': 'bind'
14 },
15 'RedHat': {
16 'pkgs': ['bind'],
17 'service': 'named',
18 'config': '/etc/named.conf',
19 'local_config': '/etc/named.conf.local',
20 'named_dir': '/var/named/data',
21 'rndc_key': '/etc/rndc.key',
22 'user': 'root',
23 'group': 'named'
24 },
Ales Komarek882ac7b2014-07-14 10:47:56 +020025}, merge=salt['pillar.get']('bind:server')) %}