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/client/darwin.pp | |
parent | c63a28d3c16ec2bb3a46d3d5faf6d7ef3b737b70 (diff) |
refactor everything into its own file
Diffstat (limited to 'manifests/client/darwin.pp')
-rw-r--r-- | manifests/client/darwin.pp | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/manifests/client/darwin.pp b/manifests/client/darwin.pp new file mode 100644 index 0000000..f6fc95f --- /dev/null +++ b/manifests/client/darwin.pp @@ -0,0 +1,21 @@ +class munin::client::darwin { + file { "/usr/share/snmp/snmpd.conf": + mode => 744, + content => template("munin/darwin_snmpd.conf.erb"), + group => 0, + owner => root, + } + delete_matching_line{"startsnmpdno": + file => "/etc/hostconfig", + pattern => "SNMPSERVER=-NO-", + } + line { "startsnmpdyes": + file => "/etc/hostconfig", + line => "SNMPSERVER=-YES-", + notify => Exec["/sbin/SystemStarter start SNMP"], + } + exec{"/sbin/SystemStarter start SNMP": + noop => false, + } + munin::register_snmp { $fqdn: } +} |