blob: 56601cf2f87200cf6627f41235c8117304b95f26 [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
Brian Sidebotham1ac97a02018-07-20 11:35:17 +010033 config_dir: /etc/dhcp
34 dhcpd_config: /etc/dhcp/dhcpd.conf
35 hosts_config: /etc/dhcp/dhcpd.hosts
36 subnets_config: /etc/dhcp/dhcpd.subnets
Ales Komarek6d9bc2c2014-09-21 17:25:05 +020037 zone: {}
38Darwin:
39 pkgs:
40 - dhcp
41 service: org.macports.dhcpd
42 config_dir: /opt/local/etc/dhcp
43 zone: {}
Ales Komarek63c2db52014-09-15 09:26:22 +020044{%- endload %}
45
46{%- set server = salt['grains.filter_by'](raw_server, merge=salt['pillar.get']('isc_dhcp:server')) %}