From 47e7ac0d356d4bd80fafd74d08cc9de9073adc36 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timo=20M=E4kinen?= Date: Tue, 26 Oct 2010 08:39:27 +0300 Subject: [PATCH] Fixed dhcpd.conf path for ubuntu and debian installs. --- dhcp/manifests/init.pp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/dhcp/manifests/init.pp b/dhcp/manifests/init.pp index 5881087..5fa2911 100644 --- a/dhcp/manifests/init.pp +++ b/dhcp/manifests/init.pp @@ -54,6 +54,11 @@ class dhcp::server::common { class dhcp::server inherits dhcp::server::common { file { "/etc/dhcpd.conf": + name => $operatingsystem ? { + debian => "/etc/dhcp3/dhcpd.conf", + ubuntu => "/etc/dhcp3/dhcpd.conf", + default => "/etc/dhcpd.conf", + }, ensure => present, source => [ "puppet:///files/dhcp/dhcpd.conf.${fqdn}", "puppet:///files/dhcp/dhcpd.conf", ],