puppet: Include tmpwatch for puppet server.
This commit is contained in:
parent
75092b2215
commit
b810e9df15
2 changed files with 13 additions and 1 deletions
|
@ -240,6 +240,8 @@ class puppet::server {
|
||||||
#
|
#
|
||||||
class puppet::server::common inherits puppet::client {
|
class puppet::server::common inherits puppet::client {
|
||||||
|
|
||||||
|
include tmpwatch
|
||||||
|
|
||||||
if $::operatingsystem in ["CentOS","RedHat"] and $::operatingsystemrelease =~ /^[1-5]\..*/ {
|
if $::operatingsystem in ["CentOS","RedHat"] and $::operatingsystemrelease =~ /^[1-5]\..*/ {
|
||||||
$seltype = "var_lib_t"
|
$seltype = "var_lib_t"
|
||||||
} else {
|
} else {
|
||||||
|
@ -472,7 +474,7 @@ class puppet::server::common inherits puppet::client {
|
||||||
mode => "0755",
|
mode => "0755",
|
||||||
owner => "root",
|
owner => "root",
|
||||||
group => "root",
|
group => "root",
|
||||||
require => File["/srv/puppet/reports"],
|
require => [ File["/srv/puppet/reports"], Package["tmpwatch"] ],
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
10
tmpwatch/manifests/init.pp
Normal file
10
tmpwatch/manifests/init.pp
Normal file
|
@ -0,0 +1,10 @@
|
||||||
|
|
||||||
|
# Install tmpwatch
|
||||||
|
#
|
||||||
|
class tmpwatch {
|
||||||
|
|
||||||
|
package { "tmpwatch":
|
||||||
|
ensure => installed,
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
Loading…
Add table
Reference in a new issue