diff options
author | Micah Anderson <micah@riseup.net> | 2011-03-25 00:01:54 -0400 |
---|---|---|
committer | Micah Anderson <micah@riseup.net> | 2011-03-25 00:01:54 -0400 |
commit | 5218993abef2a8bf79278d4d84123843279735c5 (patch) | |
tree | 8fe859ba86b83e4b9782ac19a37c89bf5cf5f0ba /manifests/client/base.pp | |
parent | b3e29447187e289c60a4a9f7830032f1b10fae2f (diff) | |
parent | e7d23dabf191c5416197af0b229fc90b94539405 (diff) |
Merge commit 'e7d23dabf191c5416197af0b229fc90b94539405'
Conflicts:
manifests/client.pp
manifests/client/base.pp
manifests/client/darwin.pp
manifests/client/debian.pp
manifests/client/gentoo.pp
manifests/client/openbsd.pp
manifests/client/package.pp
manifests/host.pp
manifests/init.pp
manifests/plugin.pp
manifests/plugin/scriptpaths.pp
manifests/plugins/interfaces.pp
manifests/plugins/linux.pp
manifests/plugins/vserver.pp
manifests/register.pp
manifests/register_snmp.pp
manifests/remoteplugin.pp
manifests/snmp_collector.pp
Diffstat (limited to 'manifests/client/base.pp')
-rw-r--r-- | manifests/client/base.pp | 49 |
1 files changed, 23 insertions, 26 deletions
diff --git a/manifests/client/base.pp b/manifests/client/base.pp index 0f0feca..7c2adc2 100644 --- a/manifests/client/base.pp +++ b/manifests/client/base.pp @@ -1,29 +1,26 @@ class munin::client::base { - service { 'munin-node': - ensure => running, - enable => true, - hasstatus => true, - hasrestart => true, - } - - file { '/etc/munin': - ensure => directory, - mode => 0755, owner => root, group => 0; - } - - $real_munin_allow = $munin_allow ? { - '' => '127.0.0.1', - default => $munin_allow - } - - file { '/etc/munin/munin-node.conf': - content => template("munin/munin-node.conf.$operatingsystem"), - notify => Service['munin-node'], - mode => 0644, owner => root, group => 0, - } - - munin::register { $fqdn: } - include munin::plugins::base - + service { 'munin-node': + ensure => running, + enable => true, + hasstatus => true, + hasrestart => true, + } + file {'/etc/munin': + ensure => directory, + mode => 0755, owner => root, group => 0; + } + $real_munin_allow = $munin_allow ? { + '' => '127.0.0.1', + default => $munin_allow + } + file {'/etc/munin/munin-node.conf': + content => template("munin/munin-node.conf.$operatingsystem"), + notify => Service['munin-node'], + mode => 0644, owner => root, group => 0, + } + munin::register { $fqdn: + config => [ 'use_node_name yes', 'load.load.warning 5', 'load.load.critical 10'], + } + include munin::plugins::base } |