mirror of
https://github.com/saltstack-formulas/bind-formula.git
synced 2025-04-16 17:50:23 +00:00

Due to issues with rollerd[1], dnssec-tools was removed from testing[2] and did not make it into Debian Jessie. This removes that package spec from the formula and leaves it as an exercise to the user to solve how to satisfy the requirement. [1]: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=754704 [2]: https://packages.qa.debian.org/d/dnssec-tools/news/20140812T163915Z.html
55 lines
1.9 KiB
Django/Jinja
55 lines
1.9 KiB
Django/Jinja
{% set map = salt['grains.filter_by']({
|
|
'Debian': {
|
|
'pkgs': ['bind9', 'bind9utils', 'dnssec-tools'],
|
|
'service': 'bind9',
|
|
'config_source_dir': 'bind/files/debian',
|
|
'zones_source_dir': '/srv/salt/zones',
|
|
'config': '/etc/bind/named.conf',
|
|
'local_config': '/etc/bind/named.conf.local',
|
|
'key_config': '/etc/bind/named.conf.key',
|
|
'options_config': '/etc/bind/named.conf.options',
|
|
'default_config': '/etc/default/bind9',
|
|
'default_zones_config': '/etc/bind/named.conf.default-zones',
|
|
'named_directory': '/var/cache/bind/zones',
|
|
'log_dir': '/var/log/bind9',
|
|
'user': 'root',
|
|
'group': 'bind',
|
|
'mode': '644'
|
|
},
|
|
'RedHat': {
|
|
'pkgs': ['bind'],
|
|
'service': 'named',
|
|
'config_source_dir': 'bind/files/redhat',
|
|
'zones_source_dir': '/srv/salt/zones',
|
|
'config': '/etc/named.conf',
|
|
'local_config': '/etc/named.conf.local',
|
|
'default_config': '/etc/sysconfig/named',
|
|
'named_directory': '/var/named/data',
|
|
'log_dir': '/var/log/named',
|
|
'user': 'root',
|
|
'group': 'named',
|
|
'mode': '640'
|
|
},
|
|
'Arch': {
|
|
'pkgs': ['bind', 'bind-tools', 'dnssec-tools'],
|
|
'service': 'named',
|
|
'config_source_dir': 'bind/files/arch',
|
|
'zones_source_dir': 'zones',
|
|
'config': '/etc/named.conf',
|
|
'local_config': '/etc/named.conf.local',
|
|
'named_directory': '/var/named',
|
|
'log_dir': '/var/log/named',
|
|
'user': 'root',
|
|
'group': 'named',
|
|
'mode': '640'
|
|
},
|
|
}, merge=salt['grains.filter_by']({
|
|
'jessie': {
|
|
'pkgs': ['bind9', 'bind9utils'],
|
|
},
|
|
}, grain='oscodename', merge=salt['grains.filter_by']({
|
|
'Ubuntu': {
|
|
'log_dir': '/var/log/named',
|
|
'user': 'bind'
|
|
},
|
|
}, grain='os', merge=salt['pillar.get']('bind:lookup')))) %}
|