diff options
author | Mathieu Bornoz <mathieu.bornoz@camptocamp.com> | 2012-08-02 11:24:52 +0200 |
---|---|---|
committer | Mathieu Bornoz <mathieu.bornoz@camptocamp.com> | 2012-08-02 11:24:52 +0200 |
commit | 109f35f97718bc607db179533461f2805a60a136 (patch) | |
tree | 7ebcbbbda7911c1f60e39c40d7115ab1e8b5696e /manifests/params.pp | |
parent | 536a24852925104df8b9becfcac9d17ac999a5f4 (diff) | |
download | puppet-dhcp-109f35f97718bc607db179533461f2805a60a136.tar.gz puppet-dhcp-109f35f97718bc607db179533461f2805a60a136.tar.bz2 |
lint + cosmetics
Diffstat (limited to 'manifests/params.pp')
-rw-r--r-- | manifests/params.pp | 31 |
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}" + } + } } |