diff options
author | Cédric Jeanneret <cedric.jeanneret@camptocamp.com> | 2011-06-22 10:53:51 +0200 |
---|---|---|
committer | Cédric Jeanneret <cedric.jeanneret@camptocamp.com> | 2011-06-22 10:53:51 +0200 |
commit | 69f887dee39d13f52b7b228fa49e54bdd0454c3b (patch) | |
tree | bb064f6da369f6a8a94ad175525fc17321c1b7a0 /manifests | |
parent | b2f56872e2e8ad9a0b2fa4e7d08eb888638d286f (diff) | |
download | puppet-dhcp-69f887dee39d13f52b7b228fa49e54bdd0454c3b.tar.gz puppet-dhcp-69f887dee39d13f52b7b228fa49e54bdd0454c3b.tar.bz2 |
dhcp::server::base - purge unused data from dhcpd.conf.d directory, added missing "modules" in file path
Diffstat (limited to 'manifests')
-rw-r--r-- | manifests/classes/dhcp-server-base.pp | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/manifests/classes/dhcp-server-base.pp b/manifests/classes/dhcp-server-base.pp index 34639a7..1725b36 100644 --- a/manifests/classes/dhcp-server-base.pp +++ b/manifests/classes/dhcp-server-base.pp @@ -27,6 +27,15 @@ class dhcp::server::base { notify => Service["dhcpd"], } + file {"${dhcp::params::config_dir}/dhcpd.conf.d": + ensure => directory, + mode => 0700, + recurse => true, + purge => true, + force => true, + source => "puppet:///modules/dhcp/empty" + } + file {"${dhcp::params::config_dir}/subnets": ensure => directory, require => Package["dhcp-server"], @@ -34,7 +43,7 @@ class dhcp::server::base { recurse => true, purge => true, force => true, - source => "puppet:///dhcp/empty" + source => "puppet:///modules/dhcp/empty" } file {"${dhcp::params::config_dir}/hosts.d": @@ -43,7 +52,7 @@ class dhcp::server::base { recurse => true, purge => true, force => true, - source => "puppet:///dhcp/empty" + source => "puppet:///modules/dhcp/empty" } } |