diff --git a/puppet/manifests/init.pp b/puppet/manifests/init.pp index be11476..5209abd 100644 --- a/puppet/manifests/init.pp +++ b/puppet/manifests/init.pp @@ -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"] ], } } diff --git a/tmpwatch/manifests/init.pp b/tmpwatch/manifests/init.pp new file mode 100644 index 0000000..554926d --- /dev/null +++ b/tmpwatch/manifests/init.pp @@ -0,0 +1,10 @@ + +# Install tmpwatch +# +class tmpwatch { + + package { "tmpwatch": + ensure => installed, + } + +}