diff options
author | Simon Séhier <saimonn@users.noreply.github.com> | 2015-08-13 11:45:54 +0200 |
---|---|---|
committer | Simon Séhier <saimonn@users.noreply.github.com> | 2015-08-13 11:45:54 +0200 |
commit | 867724de4a3320496cdfa7e851587cabbf7dc0f3 (patch) | |
tree | 61e2e4d55fb71c47edc074e02158f8e904d7cd69 /manifests | |
parent | b3771c83f8b420f108fea8b018738270b66be8e2 (diff) | |
parent | 62633f117aed4c062664d7bac5042936667286ba (diff) | |
download | puppet-dhcp-867724de4a3320496cdfa7e851587cabbf7dc0f3.tar.gz puppet-dhcp-867724de4a3320496cdfa7e851587cabbf7dc0f3.tar.bz2 |
Merge pull request #13 from saimonn/deprecate/lenny/lucid
Deprecate/lenny/lucid and add jessie to metadata.json
Diffstat (limited to 'manifests')
-rw-r--r-- | manifests/params.pp | 31 |
1 files changed, 4 insertions, 27 deletions
diff --git a/manifests/params.pp b/manifests/params.pp index 675c779..1270a53 100644 --- a/manifests/params.pp +++ b/manifests/params.pp @@ -4,31 +4,8 @@ # Set variables for names and paths # class dhcp::params { - - case $::operatingsystem { - - /Debian|Ubuntu/: { - $config_dir = $::lsbdistcodename? { - /lenny|lucid/ => '/etc/dhcp3', - /squeeze|wheezy|precise|trusty/ => '/etc/dhcp', - } - - $srv_dhcpd = $::lsbdistcodename? { - /lenny|lucid/ => 'dhcp3-server', - /squeeze|wheezy|precise|trusty/ => 'isc-dhcp-server', - } - - $service_pattern = $::lsbdistcodename? { - /lenny|lucid/ => '/usr/sbin/dhcpd3', - /squeeze|wheezy|precise|trusty/ => '/usr/sbin/dhcpd', - } - - $server_template = "${module_name}/dhcpd.conf.debian.erb" - } - - default: { - fail "Unsupported OS ${::operatingsystem}/${::lsbdistcodename}" - } - - } + $config_dir = '/etc/dhcp' + $srv_dhcpd = 'isc-dhcp-server' + $service_pattern = '/usr/sbin/dhcpd' + $server_template = "${module_name}/dhcpd.conf.debian.erb" } |