From 934bcf4459529a3c2112402746208555c2f1858e Mon Sep 17 00:00:00 2001 From: Mark Gomersbach Date: Mon, 16 Dec 2019 21:33:03 +0100 Subject: [PATCH] feat(map.jinja): add Gentoo support --- dhcpd/files/service_config.Gentoo | 28 ++++++++++++++++++++++++++++ dhcpd/map.jinja | 6 ++++++ 2 files changed, 34 insertions(+) create mode 100644 dhcpd/files/service_config.Gentoo diff --git a/dhcpd/files/service_config.Gentoo b/dhcpd/files/service_config.Gentoo new file mode 100644 index 0000000..23f699a --- /dev/null +++ b/dhcpd/files/service_config.Gentoo @@ -0,0 +1,28 @@ +# SaltStack-generated demon configuration file for ISC dhcpd + +# If you require more than one instance of dhcpd you can create symbolic +# links to dhcpd service like so +# cd /etc/init.d +# ln -s dhcpd dhcpd.foo +# cd ../conf.d +# cp dhcpd dhcpd.foo +# Now you can edit dhcpd.foo and specify a different configuration file. +# You'll also need to specify a pidfile in that dhcpd.conf file. +# See the pid-file-name option in the dhcpd.conf man page for details. + +# If you wish to run dhcpd in a chroot, uncomment the following line +# DHCPD_CHROOT="/var/lib/dhcp/chroot" + +# All file paths below are relative to the chroot. +# You can specify a different chroot directory but MAKE SURE it's empty. + +# Specify a configuration file - the default is /etc/dhcp/dhcpd.conf +# DHCPD_CONF="/etc/dhcp/dhcpd.conf" + +# Configure which interface or interfaces to for dhcpd to listen on. +# List all interfaces space separated. If this is not specified then +# we listen on all interfaces. +DHCPD_IFACE="{{ ' '.join(salt['pillar.get']('dhcpd:listen_interfaces', [])) }}" + +# Insert any other dhcpd options - see the man page for a full list. +# DHCPD_OPTS="" diff --git a/dhcpd/map.jinja b/dhcpd/map.jinja index 643c4d1..f02087e 100644 --- a/dhcpd/map.jinja +++ b/dhcpd/map.jinja @@ -26,4 +26,10 @@ 'service': 'dhcpd', 'config': '/etc/dhcpd.conf', }, + 'Gentoo': { + 'server': 'net-misc/dhcp', + 'service': 'dhcpd', + 'config': '/etc/dhcp/dhcpd.conf', + 'service_config': '/etc/conf.d/dhcpd', + }, }, merge=salt['pillar.get']('dhcpd:lookup')) %}