--- /dev/null
+{% set map = salt['grains.filter_by']({
+ 'Debian': {
+ 'pkgs': ['bind9', 'bind9utils'],
+ '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/bind',
+ 'user': 'root',
+ 'group': 'bind',
+ 'mode': '644'
+ },
+ 'Gentoo': {
+ 'pkgs': ['net-dns/bind', 'net-dns/bind-tools', 'net-dns/dnssec-root'],
+ 'service': 'named',
+ '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/conf.d/named',
+ 'default_zones_config': '/etc/bind/named.conf.default-zones',
+ 'named_directory': '/var/cache/bind/zones',
+ 'log_dir': '/var/log/bind',
+ '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']({
+ 'Ubuntu': {
+ 'log_dir': '/var/log/named',
+ 'user': 'bind'
+ },
+}, grain='os', merge=salt['pillar.get']('bind:lookup'))) %}