Purge unmanaged files from managed configuration directories.
This commit is contained in:
parent
ced754f674
commit
dc761f2a38
4 changed files with 26 additions and 4 deletions
|
@ -61,13 +61,20 @@ class apache::server inherits apache::common {
|
|||
"/srv/www/log/http",
|
||||
"/srv/www/log/http/${fqdn}", ]:
|
||||
ensure => directory,
|
||||
mode => 0755,
|
||||
mode => 0644,
|
||||
owner => root,
|
||||
group => root,
|
||||
require => Package["httpd"],
|
||||
before => File["/etc/httpd/conf/httpd.conf"],
|
||||
}
|
||||
|
||||
File["/etc/httpd/conf.http.d", "/etc/httpd/site.http.d"] {
|
||||
purge => true,
|
||||
force => true,
|
||||
recurse => true,
|
||||
source => "puppet:///custom/empty",
|
||||
}
|
||||
|
||||
file { "/etc/httpd/conf/httpd.conf":
|
||||
ensure => present,
|
||||
content => template("apache/httpd.conf.erb"),
|
||||
|
@ -205,13 +212,20 @@ class apache::sslserver inherits apache::common {
|
|||
"/srv/www/log/https",
|
||||
"/srv/www/log/https/${fqdn}", ]:
|
||||
ensure => directory,
|
||||
mode => 0755,
|
||||
mode => 0644,
|
||||
owner => root,
|
||||
group => root,
|
||||
require => Package["httpd"],
|
||||
before => File["/etc/httpd/conf/httpsd.conf"],
|
||||
}
|
||||
|
||||
File["/etc/httpd/conf.https.d", "/etc/httpd/site.https.d"] {
|
||||
purge => true,
|
||||
force => true,
|
||||
recurse => true,
|
||||
source => "puppet:///custom/empty",
|
||||
}
|
||||
|
||||
file { "/etc/httpd/conf/httpsd.conf":
|
||||
ensure => present,
|
||||
mode => 0644,
|
||||
|
|
|
@ -95,9 +95,12 @@ class backuppc::server {
|
|||
file { "/etc/BackupPC/pc":
|
||||
ensure => directory,
|
||||
purge => true,
|
||||
mode => 0750,
|
||||
force => true,
|
||||
recurse => true,
|
||||
mode => 0640,
|
||||
owner => root,
|
||||
group => backuppc,
|
||||
source => "puppet:///custom/empty",
|
||||
require => Package["BackupPC"],
|
||||
}
|
||||
|
||||
|
|
1
custom/files/empty/README
Normal file
1
custom/files/empty/README
Normal file
|
@ -0,0 +1 @@
|
|||
# This directory is managed by puppet. All unmanaged files will be removed.
|
|
@ -175,9 +175,13 @@ class munin::server {
|
|||
|
||||
file { "/etc/munin/nodes.d":
|
||||
ensure => directory,
|
||||
purge => true,
|
||||
force => true,
|
||||
recurse => true,
|
||||
owner => root,
|
||||
group => root,
|
||||
mode => 0755,
|
||||
mode => 0644,
|
||||
source => "puppet:///custom/empty",
|
||||
require => Package["munin"],
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue