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-variables.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-variables.pp')
-rw-r--r-- | manifests/classes/dhcp-variables.pp | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/manifests/classes/dhcp-variables.pp b/manifests/classes/dhcp-variables.pp new file mode 100644 index 0000000..e189ae6 --- /dev/null +++ b/manifests/classes/dhcp-variables.pp @@ -0,0 +1,22 @@ +/* + += Class: dhcp::variables +Do NOT include this class - it won't do anything. +Set variables for names and paths + +*/ +class dhcp::variables { + case $operatingsystem { + Debian: { + $config_dir = $lsbdistcodename? { + lenny => "/etc/dhcp3", + squeeze => "/etc/dhcp", + } + + $srv_dhcpd = $lsbdistcodename? { + lenny => "dhcp3-server", + squeeze => "isc-dhcp-server", + } + } + } +} |