summaryrefslogtreecommitdiff
path: root/manifests/client/darwin.pp
blob: 76398964b5b1e62dc6b33ff396b44e15a5f41e49 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# Install a munin client on darwin
class munin::client::darwin {
  file { '/usr/share/snmp/snmpd.conf':
    mode    => '0744',
    content => template('munin/darwin_snmpd.conf.erb'),
    group   => 0,
    owner   => root,
  }
  line{'startsnmpdno':
    ensure => absent,
    file   => '/etc/hostconfig',
    line   => '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: }
}