From aaf55c9ebfa0e34f63b2ca3c2b660e1d164026dd Mon Sep 17 00:00:00 2001 From: Ewoud Kohl van Wijngaarden Date: Mon, 6 May 2013 18:13:12 +0200 Subject: lintify --- manifests/client/darwin.pp | 29 +++++++++++++++-------------- 1 file changed, 15 insertions(+), 14 deletions(-) (limited to 'manifests/client/darwin.pp') 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: } -- cgit v1.2.3 From 64e309214b30502e853f1017cf3f4b12886d02c9 Mon Sep 17 00:00:00 2001 From: intrigeri Date: Thu, 12 Feb 2015 18:58:17 +0000 Subject: Remove munin::client::darwin (Closes: #4347). It's using `line', and then it's the only blocker left to migrate to the cleaned up "common" module. We've found nobody who could maintain it nor test changes we could make, so better simply drop it. --- manifests/client/darwin.pp | 23 ----------------------- 1 file changed, 23 deletions(-) delete mode 100644 manifests/client/darwin.pp (limited to 'manifests/client/darwin.pp') diff --git a/manifests/client/darwin.pp b/manifests/client/darwin.pp deleted file mode 100644 index 7639896..0000000 --- a/manifests/client/darwin.pp +++ /dev/null @@ -1,23 +0,0 @@ -# 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: } -} -- cgit v1.2.3