diff options
author | Cédric Jeanneret <cedric.jeanneret@camptocamp.com> | 2010-11-05 08:35:57 +0100 |
---|---|---|
committer | Cédric Jeanneret <cedric.jeanneret@camptocamp.com> | 2010-11-05 08:35:57 +0100 |
commit | 8603292711ab1a3fd4fa7b66a0e9bfed4637f234 (patch) | |
tree | b479cef25d5e12c59088e787d4814890f036d8b6 /manifests/classes/dhcp-params.pp | |
parent | 27a7dee0f65476c637755100bf18e0252b3534dc (diff) | |
download | puppet-dhcp-8603292711ab1a3fd4fa7b66a0e9bfed4637f234.tar.gz puppet-dhcp-8603292711ab1a3fd4fa7b66a0e9bfed4637f234.tar.bz2 |
dhcp::params - class can be used for client and server
Diffstat (limited to 'manifests/classes/dhcp-params.pp')
-rw-r--r-- | manifests/classes/dhcp-params.pp | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/manifests/classes/dhcp-params.pp b/manifests/classes/dhcp-params.pp new file mode 100644 index 0000000..4a8eaa1 --- /dev/null +++ b/manifests/classes/dhcp-params.pp @@ -0,0 +1,22 @@ +/* + += Class: dhcp::params +Do NOT include this class - it won't do anything. +Set variables for names and paths + +*/ +class dhcp::params { + case $operatingsystem { + Debian: { + $config_dir = $lsbdistcodename? { + lenny => "/etc/dhcp3", + squeeze => "/etc/dhcp", + } + + $srv_dhcpd = $lsbdistcodename? { + lenny => "dhcp3-server", + squeeze => "isc-dhcp-server", + } + } + } +} |