From b810e9df15c246a904571cca4c62c716f2e84be3 Mon Sep 17 00:00:00 2001 From: Ossi Herrala Date: Fri, 14 Feb 2014 08:03:29 +0000 Subject: [PATCH] puppet: Include tmpwatch for puppet server. --- puppet/manifests/init.pp | 4 +++- tmpwatch/manifests/init.pp | 10 ++++++++++ 2 files changed, 13 insertions(+), 1 deletion(-) create mode 100644 tmpwatch/manifests/init.pp 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, + } + +}