From: Richard Anderson Date: Tue, 18 Feb 2014 21:48:42 +0000 (-0600) Subject: Update params.pp: Ubuntu Lucid/Precise X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=a92838058dc0ce36bd16879f245b72ab7b9efa8f;p=puppet-dhcp.git Update params.pp: Ubuntu Lucid/Precise Added compatibility for Ubuntu Lucid and Ubuntu Precise versions. --- diff --git a/manifests/params.pp b/manifests/params.pp index 2d10134..fc45987 100644 --- a/manifests/params.pp +++ b/manifests/params.pp @@ -7,20 +7,20 @@ class dhcp::params { case $::operatingsystem { - Debian: { + /Debian|Ubuntu/: { $config_dir = $::lsbdistcodename? { - lenny => '/etc/dhcp3', - /squeeze|wheezy/ => '/etc/dhcp', + /lenny|lucid/ => '/etc/dhcp3', + /squeeze|wheezy|precise/ => '/etc/dhcp', } $srv_dhcpd = $::lsbdistcodename? { - lenny => 'dhcp3-server', - /squeeze|wheezy/ => 'isc-dhcp-server', + /lenny|lucid/ => 'dhcp3-server', + /squeeze|wheezy|precise/ => 'isc-dhcp-server', } $service_pattern = $::lsbdistcodename? { - lenny => '/usr/sbin/dhcpd3', - /squeeze|wheezy/ => '/usr/sbin/dhcpd', + /lenny|lucid/ => '/usr/sbin/dhcpd3', + /squeeze|wheezy|precise/ => '/usr/sbin/dhcpd', } $server_template = "${module_name}/dhcpd.conf.debian.erb"