aboutsummaryrefslogtreecommitdiff
path: root/manifests/classes/dhcp-debian.pp
diff options
context:
space:
mode:
Diffstat (limited to 'manifests/classes/dhcp-debian.pp')
-rw-r--r--manifests/classes/dhcp-debian.pp24
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",
+ }
+ }
+}