summaryrefslogtreecommitdiff
path: root/manifests/host/cgi.pp
blob: a19c432b1e76b925a7493f530c53b5b822489432 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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 {} \;',
    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   => Concat::Fragment['munin.conf.header'],
  }

  file{'/etc/logrotate.d/munin':
    source => [ "puppet:///modules/site_munin/config/host/${::fqdn}/logrotate",
                "puppet:///modules/site_munin/config/host/logrotate.${::operatingsystem}",
                "puppet:///modules/site_munin/config/host/logrotate",
                "puppet:///modules/munin/config/host/logrotate.${::operatingsystem}",
                "puppet:///modules/munin/config/host/logrotate" ],
    owner => root, group => 0, mode => 0644;
  }
}