diff options
author | varac <varacanero.zeromail.org> | 2012-10-11 15:58:27 +0200 |
---|---|---|
committer | varac <varacanero.zeromail.org> | 2012-10-11 15:58:27 +0200 |
commit | 3252643904ff7bbda5144260e8ae7a3c04ace8c9 (patch) | |
tree | 0ee740ca228cd62a6237b4c58e8f72358adf1861 /manifests/puppetmaster | |
parent | a579949ddd9f66cf18be4625ec364962e82c388b (diff) |
file extension .sh is not recognized by run-parts
Diffstat (limited to 'manifests/puppetmaster')
-rw-r--r-- | manifests/puppetmaster/cleanup_reports.pp | 2 | ||||
-rw-r--r-- | manifests/puppetmaster/cleanup_reports/disable.pp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/manifests/puppetmaster/cleanup_reports.pp b/manifests/puppetmaster/cleanup_reports.pp index 005a4d7..1f8c021 100644 --- a/manifests/puppetmaster/cleanup_reports.pp +++ b/manifests/puppetmaster/cleanup_reports.pp @@ -1,7 +1,7 @@ class puppet::puppetmaster::cleanup_reports { case $puppetmaster_reports_dir { '',undef: { $puppetmaster_reports_dir = '/var/lib/puppet/reports' } } # clean up reports older than $puppetmaster_cleanup_reports days - file { '/etc/cron.daily/puppet_reports_cleanup.sh': + file { '/etc/cron.daily/puppet_reports_cleanup': content => "#!/bin/bash\nfind ${puppetmaster_reports_dir} -maxdepth 2 -type f -ctime +${puppetmaster_cleanup_reports} -exec rm {} \\;\n", owner => root, group => 0, mode => 0700; } diff --git a/manifests/puppetmaster/cleanup_reports/disable.pp b/manifests/puppetmaster/cleanup_reports/disable.pp index 8636223..0b6da05 100644 --- a/manifests/puppetmaster/cleanup_reports/disable.pp +++ b/manifests/puppetmaster/cleanup_reports/disable.pp @@ -1,6 +1,6 @@ class puppet::puppetmaster::cleanup_reports::disable inherits puppet::puppetmaster::cleanup_reports { - File['/etc/cron.daily/puppet_reports_cleanup.sh']{ + File['/etc/cron.daily/puppet_reports_cleanup']{ ensure => absent, } } |