From 6bc1dede76dbd64478634b81e88ded9ec7f3c0b1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timo=20M=E4kinen?= Date: Tue, 17 Apr 2012 01:18:32 +0300 Subject: [PATCH] Fixed dhcp::server::ldap depencies. --- dhcp/manifests/init.pp | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/dhcp/manifests/init.pp b/dhcp/manifests/init.pp index a517541..1c31758 100644 --- a/dhcp/manifests/init.pp +++ b/dhcp/manifests/init.pp @@ -96,7 +96,8 @@ class dhcp::server inherits dhcp::server::common { class dhcp::server::ldap inherits dhcp::server::common { - include ldap::client::python + include python + include ldap::client file { "/usr/local/sbin/dhcpdump.py": ensure => present, @@ -126,8 +127,12 @@ class dhcp::server::ldap inherits dhcp::server::common { path => "/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin", command => "dhcpdump.py /etc/dhcpd.conf.in* > /etc/dhcpd.conf", unless => "dhcpdump.py /etc/dhcpd.conf.in* | diff /etc/dhcpd.conf -", - require => [ File["/etc/dhcpd.conf.in"], - File["/usr/local/sbin/dhcpdump.py"], ], + require => [ + File["/etc/dhcpd.conf.in"], + File["/usr/local/sbin/dhcpdump.py"], + Class["python"], + Class["ldap::client"], + ], notify => Service["dhcpd"], }