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"], }