diff options
author | Cédric Jeanneret <cedric.jeanneret@camptocamp.com> | 2010-11-04 14:02:31 +0100 |
---|---|---|
committer | Cédric Jeanneret <cedric.jeanneret@camptocamp.com> | 2010-11-04 14:02:31 +0100 |
commit | 68b0642c21a598b6f5aecfedd38cc1584737fbec (patch) | |
tree | fdbedfe6246b9bb467fe125097ccaf36abf4c892 /manifests/classes/dhcp-debian.pp | |
download | puppet-dhcp-68b0642c21a598b6f5aecfedd38cc1584737fbec.tar.gz puppet-dhcp-68b0642c21a598b6f5aecfedd38cc1584737fbec.tar.bz2 |
New module: dhcp
Install and manage a dhcp server with puppet.
Please read manifests/classes/dhcp.pp for more informations about usage.
Diffstat (limited to 'manifests/classes/dhcp-debian.pp')
-rw-r--r-- | manifests/classes/dhcp-debian.pp | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/manifests/classes/dhcp-debian.pp b/manifests/classes/dhcp-debian.pp new file mode 100644 index 0000000..1d35cbc --- /dev/null +++ b/manifests/classes/dhcp-debian.pp @@ -0,0 +1,24 @@ +/* + += Class: dhcp::debian +Installs a dhcp server on debian system. + +This class should not be included as is, please include "dhcp" instead. + +*/ +class dhcp::debian inherits dhcp::base { + + Common::Concatfilepart["00-base"] { + content => $lsbdistcodename ? { + squeeze => template('dhcp/dhcpd.conf.squeeze.erb'), + lenny => template('dhcp/dhcpd.conf.lenny.erb'), + } + } + + Service["dhcpd"] { + pattern => $lsbdistcodename ? { + squeeze => "/usr/sbin/dhcpd", + lenny => "/usr/sbin/dhcpd3", + } + } +} |