diff options
author | Marcel Haerry <haerry@puzzle.ch> | 2011-08-04 10:22:48 +0200 |
---|---|---|
committer | Marcel Haerry <haerry@puzzle.ch> | 2011-08-04 10:22:48 +0200 |
commit | 447041b01494690975d078776a85f4a3fd4e64fa (patch) | |
tree | 0d09932e8466de8208144aa034de401398151ca6 /manifests/host.pp | |
parent | 553fbe3e1d3c6865172c1db8cf93d69fb936dc18 (diff) | |
parent | eb953716cd545f86972e85d983b5862c194f5aed (diff) |
merge with immerda/master
Diffstat (limited to 'manifests/host.pp')
-rw-r--r-- | manifests/host.pp | 22 |
1 files changed, 8 insertions, 14 deletions
diff --git a/manifests/host.pp b/manifests/host.pp index 734eea6..3e4f5ea 100644 --- a/manifests/host.pp +++ b/manifests/host.pp @@ -2,11 +2,11 @@ # Copyright (C) 2007 David Schmitt <david@schmitt.edv-bus.at> # See LICENSE for the full license granted to you. -class munin::host +class munin::host inherits munin { - package {"munin": ensure => installed, } + package {"munin": ensure => installed, } - File <<| tag == 'munin' |>> + File <<| tag == 'munin' |>> file{'/etc/munin/munin.conf.header': source => [ "puppet:///modules/site-munin/config/host/${fqdn}/munin.conf.header", @@ -18,21 +18,15 @@ class munin::host owner => root, group => 0, mode => 0644; } - concatenated_file { "/etc/munin/munin.conf": - dir => '/var/lib/puppet/modules/munin/nodes', - header => "/etc/munin/munin.conf.header", - } - - file { ["/var/log/munin-update.log", "/var/log/munin-limits.log", - "/var/log/munin-graph.log", "/var/log/munin-html.log"]: - ensure => present, - mode => 640, owner => munin, group => 0; + concatenated_file { "/etc/munin/munin.conf": + dir => '/var/lib/puppet/modules/munin/nodes', + header => "/etc/munin/munin.conf.header", } include munin::plugins::muninhost - case $operatingsystem { - centos: { include munin::host::cgi } + if $munin_do_cgi_graphing { + include munin::host::cgi } # from time to time we cleanup hanging munin-runs |