Skip to content

Commit

Permalink
Merge pull request #41 from mgomersbach/add-gentoo-support
Browse files Browse the repository at this point in the history
feat(map.jinja): add Gentoo support
  • Loading branch information
myii authored Dec 16, 2019
2 parents f838b4d + 934bcf4 commit 7d06412
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 0 deletions.
28 changes: 28 additions & 0 deletions dhcpd/files/service_config.Gentoo
Original file line number Diff line number Diff line change
@@ -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=""
6 changes: 6 additions & 0 deletions dhcpd/map.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -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')) %}

0 comments on commit 7d06412

Please sign in to comment.