summaryrefslogtreecommitdiff
path: root/manifests/client/darwin.pp
diff options
context:
space:
mode:
authorEwoud Kohl van Wijngaarden <e.kohlvanwijngaarden@oxilion.nl>2013-05-06 18:13:12 +0200
committerEwoud Kohl van Wijngaarden <e.kohlvanwijngaarden@oxilion.nl>2013-07-02 19:20:22 +0200
commitaaf55c9ebfa0e34f63b2ca3c2b660e1d164026dd (patch)
treea57cb9f94b00a43efbcd15b6e8b507d6de22be3b /manifests/client/darwin.pp
parent46c1aeb48f03f5eb0f761f0135de967a62986515 (diff)
lintify
Diffstat (limited to 'manifests/client/darwin.pp')
-rw-r--r--manifests/client/darwin.pp29
1 files changed, 15 insertions, 14 deletions
diff --git a/manifests/client/darwin.pp b/manifests/client/darwin.pp
index 264263d..7639896 100644
--- a/manifests/client/darwin.pp
+++ b/manifests/client/darwin.pp
@@ -1,21 +1,22 @@
+# Install a munin client on darwin
class munin::client::darwin {
- file { "/usr/share/snmp/snmpd.conf":
- mode => 744,
- content => template("munin/darwin_snmpd.conf.erb"),
- group => 0,
- owner => root,
+ file { '/usr/share/snmp/snmpd.conf':
+ mode => '0744',
+ content => template('munin/darwin_snmpd.conf.erb'),
+ group => 0,
+ owner => root,
}
- line{"startsnmpdno":
- file => "/etc/hostconfig",
- line => "SNMPSERVER=-NO-",
- ensure => 'absent',
+ line{'startsnmpdno':
+ ensure => absent,
+ file => '/etc/hostconfig',
+ line => 'SNMPSERVER=-NO-',
}
- line { "startsnmpdyes":
- file => "/etc/hostconfig",
- line => "SNMPSERVER=-YES-",
- notify => Exec["/sbin/SystemStarter start SNMP"],
+ line { 'startsnmpdyes':
+ file => '/etc/hostconfig',
+ line => 'SNMPSERVER=-YES-',
+ notify => Exec['/sbin/SystemStarter start SNMP'],
}
- exec{"/sbin/SystemStarter start SNMP":
+ exec{'/sbin/SystemStarter start SNMP':
noop => false,
}
munin::register::snmp { $::fqdn: }