aboutsummaryrefslogtreecommitdiff
path: root/manifests/params.pp
diff options
context:
space:
mode:
Diffstat (limited to 'manifests/params.pp')
-rw-r--r--manifests/params.pp31
1 files changed, 18 insertions, 13 deletions
diff --git a/manifests/params.pp b/manifests/params.pp
index 4a8eaa1..d14746c 100644
--- a/manifests/params.pp
+++ b/manifests/params.pp
@@ -1,22 +1,27 @@
-/*
+# = Class: dhcp::params
+#
+# Do NOT include this class - it won't do anything.
+# Set variables for names and paths
+#
+class dhcp::params {
-= Class: dhcp::params
-Do NOT include this class - it won't do anything.
-Set variables for names and paths
+ case $::operatingsystem {
-*/
-class dhcp::params {
- case $operatingsystem {
Debian: {
- $config_dir = $lsbdistcodename? {
- lenny => "/etc/dhcp3",
- squeeze => "/etc/dhcp",
+ $config_dir = $::lsbdistcodename? {
+ lenny => '/etc/dhcp3',
+ squeeze => '/etc/dhcp',
}
- $srv_dhcpd = $lsbdistcodename? {
- lenny => "dhcp3-server",
- squeeze => "isc-dhcp-server",
+ $srv_dhcpd = $::lsbdistcodename? {
+ lenny => 'dhcp3-server',
+ squeeze => 'isc-dhcp-server',
}
}
+
+ default: {
+ fail "${name} is not available for ${operatingsystem}/${lsbdistcodename}"
+ }
+
}
}