blob: 178628902ff1994c8525ebb131568513c2cbb231 [file] [log] [blame]
Ales Komarek63c2db52014-09-15 09:26:22 +02001{%- load_yaml as raw_server %}
2Debian:
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 Komarek6d9bc2c2014-09-21 17:25:05 +02009 config_dir: /etc/dhcp
Ales Komarek63c2db52014-09-15 09:26:22 +020010 dhcpd_config: /etc/dhcp/dhcpd.conf
11 hosts_config: /etc/dhcp/dhcpd.hosts
12 subnets_config: /etc/dhcp/dhcpd.subnets
Ales Komarek6d9bc2c2014-09-21 17:25:05 +020013 zone: {}
Ales Komarek63c2db52014-09-15 09:26:22 +020014FreeBSD:
15 pkgs:
jan kaufman99d61b02016-02-17 14:19:35 +010016 - isc-dhcp42-server
Ales Komarek63c2db52014-09-15 09:26:22 +020017 service: isc-dhcpd
18 logging:
jan kaufman99d61b02016-02-17 14:19:35 +010019 facility: local7
Ales Komarek63c2db52014-09-15 09:26:22 +020020 defaults_config: /etc/rc.conf.d/dhcpd
Ales Komarek6d9bc2c2014-09-21 17:25:05 +020021 config_dir: /usr/local/etc
Ales Komarek63c2db52014-09-15 09:26:22 +020022 dhcpd_config: /usr/local/etc/dhcpd.conf
23 hosts_config: /usr/local/etc/dhcpd.hosts
Ales Komareka5f768e2014-09-21 17:48:03 +020024 subnets_config: /usr/local/etc/dhcpd.subnets
Ales Komarek6d9bc2c2014-09-21 17:25:05 +020025 zone: {}
Ales Komarek63c2db52014-09-15 09:26:22 +020026RedHat:
27 pkgs:
28 - dhcp
29 service: dhcpd
30 logging:
31 facility: local7
32 defaults_config: /etc/sysconfig/dhcpd
Ales Komarek6d9bc2c2014-09-21 17:25:05 +020033 zone: {}
34Darwin:
35 pkgs:
36 - dhcp
37 service: org.macports.dhcpd
38 config_dir: /opt/local/etc/dhcp
39 zone: {}
Ales Komarek63c2db52014-09-15 09:26:22 +020040{%- endload %}
41
42{%- set server = salt['grains.filter_by'](raw_server, merge=salt['pillar.get']('isc_dhcp:server')) %}