Ales Komarek | fbfa168 | 2014-09-22 11:31:14 +0200 | [diff] [blame] | 1 | |
| 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 Komarek | ef1b639 | 2014-09-29 11:25:07 +0200 | [diff] [blame^] | 12 | 'user': 'bind', |
Ales Komarek | fbfa168 | 2014-09-22 11:31:14 +0200 | [diff] [blame] | 13 | '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 Komarek | 882ac7b | 2014-07-14 10:47:56 +0200 | [diff] [blame] | 25 | }, merge=salt['pillar.get']('bind:server')) %} |