diff options
author | mh <mh@immerda.ch> | 2009-09-29 22:51:15 +0200 |
---|---|---|
committer | mh <mh@immerda.ch> | 2009-09-29 22:51:15 +0200 |
commit | 1893960c1babb6a261cc6fc399231e9c0644a104 (patch) | |
tree | 7e4fb1f3d2d34490b8d5cfff50d6f9cadf890fb9 /manifests/host/cgi.pp | |
parent | c63a28d3c16ec2bb3a46d3d5faf6d7ef3b737b70 (diff) |
refactor everything into its own file
Diffstat (limited to 'manifests/host/cgi.pp')
-rw-r--r-- | manifests/host/cgi.pp | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/manifests/host/cgi.pp b/manifests/host/cgi.pp new file mode 100644 index 0000000..7fdb281 --- /dev/null +++ b/manifests/host/cgi.pp @@ -0,0 +1,16 @@ +class munin::host::cgi { + exec{'set_modes_for_cgi': + command => 'chgrp apache /var/log/munin /var/log/munin/munin-graph.log && chmod g+w /var/log/munin /var/log/munin/munin-graph.log && find /var/www/html/munin/* -maxdepth 1 -type d -exec chgrp -R apache {} \; && find /var/www/html/munin/* -maxdepth 1 -type d -exec chmod -R g+w {} \;', + refreshonly => true, + subscribe => File['/etc/munin/munin.conf.header'], + } + + file{'/etc/logrotate.d/munin': + source => [ "puppet://$server/files/munin/config/host/${fqdn}/logrotate", + "puppet://$server/files/munin/config/host/logrotate.$operatingsystem", + "puppet://$server/files/munin/config/host/logrotate", + "puppet://$server/munin/config/host/logrotate.$operatingsystem", + "puppet://$server/munin/config/host/logrotate" ], + owner => root, group => 0, mode => 0644; + } +} |