blob: 361a150627a911e613fb55b4857db24ec2a4e8ce [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:
16 - isc-dhcp42-server
17 service: isc-dhcpd
18 logging:
19 facility: local7
20 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')) %}