Ales Komarek | 63c2db5 | 2014-09-15 09:26:22 +0200 | [diff] [blame] | 1 | {%- load_yaml as raw_server %} |
| 2 | Debian: |
| 3 | pkgs: |
| 4 | - isc-dhcp-server |
| 5 | service: isc-dhcp-server |
| 6 | logging: |
| 7 | facility: local7 |
| 8 | defaults_config: /etc/default/isc-dhcp-server |
Ales Komarek | 6d9bc2c | 2014-09-21 17:25:05 +0200 | [diff] [blame] | 9 | config_dir: /etc/dhcp |
Ales Komarek | 63c2db5 | 2014-09-15 09:26:22 +0200 | [diff] [blame] | 10 | dhcpd_config: /etc/dhcp/dhcpd.conf |
| 11 | hosts_config: /etc/dhcp/dhcpd.hosts |
| 12 | subnets_config: /etc/dhcp/dhcpd.subnets |
Ales Komarek | 6d9bc2c | 2014-09-21 17:25:05 +0200 | [diff] [blame] | 13 | zone: {} |
Ales Komarek | 63c2db5 | 2014-09-15 09:26:22 +0200 | [diff] [blame] | 14 | FreeBSD: |
| 15 | pkgs: |
| 16 | - isc-dhcp42-server |
| 17 | service: isc-dhcpd |
| 18 | logging: |
| 19 | facility: local7 |
| 20 | defaults_config: /etc/rc.conf.d/dhcpd |
Ales Komarek | 6d9bc2c | 2014-09-21 17:25:05 +0200 | [diff] [blame] | 21 | config_dir: /usr/local/etc |
Ales Komarek | 63c2db5 | 2014-09-15 09:26:22 +0200 | [diff] [blame] | 22 | dhcpd_config: /usr/local/etc/dhcpd.conf |
| 23 | hosts_config: /usr/local/etc/dhcpd.hosts |
Ales Komarek | a5f768e | 2014-09-21 17:48:03 +0200 | [diff] [blame] | 24 | subnets_config: /usr/local/etc/dhcpd.subnets |
Ales Komarek | 6d9bc2c | 2014-09-21 17:25:05 +0200 | [diff] [blame] | 25 | zone: {} |
Ales Komarek | 63c2db5 | 2014-09-15 09:26:22 +0200 | [diff] [blame] | 26 | RedHat: |
| 27 | pkgs: |
| 28 | - dhcp |
| 29 | service: dhcpd |
| 30 | logging: |
| 31 | facility: local7 |
| 32 | defaults_config: /etc/sysconfig/dhcpd |
Ales Komarek | 6d9bc2c | 2014-09-21 17:25:05 +0200 | [diff] [blame] | 33 | zone: {} |
| 34 | Darwin: |
| 35 | pkgs: |
| 36 | - dhcp |
| 37 | service: org.macports.dhcpd |
| 38 | config_dir: /opt/local/etc/dhcp |
| 39 | zone: {} |
Ales Komarek | 63c2db5 | 2014-09-15 09:26:22 +0200 | [diff] [blame] | 40 | {%- endload %} |
| 41 | |
| 42 | {%- set server = salt['grains.filter_by'](raw_server, merge=salt['pillar.get']('isc_dhcp:server')) %} |