diff options
author | duritong <peter.meier+github@immerda.ch> | 2013-08-25 04:01:08 -0700 |
---|---|---|
committer | duritong <peter.meier+github@immerda.ch> | 2013-08-25 04:01:08 -0700 |
commit | 9a98e96366ed2986fcce2b9a6298580583ab62c7 (patch) | |
tree | b2dd2f25149b0752486d7c28092c468a5926663e /manifests/client/darwin.pp | |
parent | f79c556357cdd4e0a06596b32661e3f156e2fc4f (diff) | |
parent | 42488b04b47ec3fd87f1d45ec3fa90b588545ca1 (diff) |
Merge pull request #12 from oxilion/linting
lintify
Diffstat (limited to 'manifests/client/darwin.pp')
-rw-r--r-- | manifests/client/darwin.pp | 29 |
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: } |