summaryrefslogtreecommitdiff
path: root/manifests/client/darwin.pp
blob: 4004f748972b70a5034bf4c67937c4a4f16ff0f0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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: }
}