Merged in oherrala/puppet/oherrala-puppet (pull request #45)
puppet: Include tmpwatch for puppet server.
This commit is contained in:
commit
d9851631bb
2 changed files with 13 additions and 1 deletions
|
@ -240,6 +240,8 @@ class puppet::server {
|
|||
#
|
||||
class puppet::server::common inherits puppet::client {
|
||||
|
||||
include tmpwatch
|
||||
|
||||
if $::operatingsystem in ["CentOS","RedHat"] and $::operatingsystemrelease =~ /^[1-5]\..*/ {
|
||||
$seltype = "var_lib_t"
|
||||
} else {
|
||||
|
@ -472,7 +474,7 @@ class puppet::server::common inherits puppet::client {
|
|||
mode => "0755",
|
||||
owner => "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