blob: 0d74fa6675565c39eb43dddc06ca700a16774dd0 [file] [log] [blame]
Ales Komarekd5029c82015-01-07 13:58:23 +01001
2{%- set server = salt['grains.filter_by']({
3 'Debian': {
liquidfa359a22015-01-07 14:56:19 +01004 'pkgs': ['pdns-server'],
Ales Komarek347430d2015-01-07 17:41:49 +01005 'mysql_pkgs': ['pdns-backend-mysql'],
liquidfa359a22015-01-07 14:56:19 +01006 'service': 'pdns',
7 'config': '/etc/powerdns/pdns.conf',
8 'local_config': '/etc/powerdns/pdns.d/pdns.local.conf',
Ales Komarek347430d2015-01-07 17:41:49 +01009 'bind': {
10 'address': '0.0.0.0',
11 'port': '53'
12 },
13 'backend': {
14 'engine': 'mysql',
15 }
Ales Komarekd5029c82015-01-07 13:58:23 +010016 },
17 'RedHat': {
liquidfa359a22015-01-07 14:56:19 +010018 'pkgs': ['pdns-server'],
Ales Komarek347430d2015-01-07 17:41:49 +010019 'mysql_pkgs': ['pdns-backend-mysql'],
liquidfa359a22015-01-07 14:56:19 +010020 'service': 'pdns',
21 'config': '/etc/powerdns/pdns.conf',
22 'local_config': '/etc/powerdns/pdns.d/pdns.local.conf',
Ales Komarek347430d2015-01-07 17:41:49 +010023 'bind': {
24 'address': '0.0.0.0',
25 'port': '53'
26 },
27 'backend': {
28 'engine': 'mysql',
29 }
Ales Komarekd5029c82015-01-07 13:58:23 +010030 },
31}, merge=salt['pillar.get']('powerdns:server')) %}