summaryrefslogtreecommitdiff
path: root/manifests/client/openbsd.pp
diff options
context:
space:
mode:
authorMicah Anderson <micah@riseup.net>2010-12-10 16:48:01 -0500
committerMicah Anderson <micah@riseup.net>2010-12-10 16:48:01 -0500
commit74f66a8e77b153552ef52efee03187320e1ce877 (patch)
tree9f842135e5a62df7d0ef503dcf045e19238ff013 /manifests/client/openbsd.pp
parentfefc399e7e28ec871d91089d535073c2bc705009 (diff)
standardize formatting
Diffstat (limited to 'manifests/client/openbsd.pp')
-rw-r--r--manifests/client/openbsd.pp83
1 files changed, 45 insertions, 38 deletions
diff --git a/manifests/client/openbsd.pp b/manifests/client/openbsd.pp
index 90bf7df..468cffa 100644
--- a/manifests/client/openbsd.pp
+++ b/manifests/client/openbsd.pp
@@ -1,43 +1,50 @@
# currently we install munin on openbsd by targz
# :(
+
class munin::client::openbsd inherits munin::client::base {
- file{'/usr/src/munin_openbsd.tar.gz':
- source => "puppet://$server/modules/munin/openbsd/package/munin_openbsd.tar.gz",
- owner => root, group => 0, mode => 0600;
- }
- package{ [ 'p5-Compress-Zlib', 'p5-Crypt-SSLeay', 'p5-HTML-Parser',
- 'p5-HTML-Tagset', 'p5-HTTP-GHTTP', 'p5-LWP-UserAgent-Determined',
- 'p5-Net-SSLeay', 'p5-Net-Server', 'p5-URI', 'p5-libwww', 'pcre', 'curl' ]:
- ensure => installed,
- before => File['/var/run/munin'],
- }
- exec{'extract_openbsd':
- command => 'cd /;tar xzf /usr/src/munin_openbsd.tar.gz',
- unless => 'test -d /opt/munin',
- require => File['/usr/src/munin_openbsd.tar.gz'],
- }
- file{[ '/var/run/munin', '/var/log/munin' ]:
- ensure => directory,
- require => Exec['extract_openbsd'],
- owner => root, group => 0, mode => 0755;
- }
- openbsd::rc_local{'munin-node':
- binary => '/opt/munin/sbin/munin-node',
- require => File['/var/run/munin'],
- }
- Service['munin-node']{
- restart => '/bin/kill -HUP `/bin/cat /var/run/munin/munin-node.pid`',
- stop => '/bin/kill `/bin/cat /var/run/munin/munin-node.pid`',
- start => '/opt/munin/sbin/munin-node',
- hasstatus => false,
- hasrestart => false,
- require => [ File['/var/run/munin'], File['/var/log/munin'] ],
- }
- cron{'clean_munin_logfile':
- command => 'rm /var/log/munin/munin-node.log; kill -HUP `cat /var/run/munin/munin-node.pid`',
- minute => 0,
- hour => 2,
- weekday => 0,
- }
+ file{ '/usr/src/munin_openbsd.tar.gz':
+ source => "puppet://$server/modules/munin/openbsd/package/munin_openbsd.tar.gz",
+ owner => root, group => 0, mode => 0600;
+ }
+
+ package { [ 'p5-Compress-Zlib', 'p5-Crypt-SSLeay', 'p5-HTML-Parser',
+ 'p5-HTML-Tagset', 'p5-HTTP-GHTTP', 'p5-LWP-UserAgent-Determined',
+ 'p5-Net-SSLeay', 'p5-Net-Server', 'p5-URI', 'p5-libwww', 'pcre', 'curl' ]:
+ ensure => installed,
+ before => File['/var/run/munin'],
+ }
+
+ exec { 'extract_openbsd':
+ command => 'cd /;tar xzf /usr/src/munin_openbsd.tar.gz',
+ unless => 'test -d /opt/munin',
+ require => File['/usr/src/munin_openbsd.tar.gz'],
+ }
+
+ file{ [ '/var/run/munin', '/var/log/munin' ]:
+ ensure => directory,
+ require => Exec['extract_openbsd'],
+ owner => root, group => 0, mode => 0755;
+ }
+
+ openbsd::rc_local{ 'munin-node':
+ binary => '/opt/munin/sbin/munin-node',
+ require => File['/var/run/munin'],
+ }
+
+ Service['munin-node']{
+ restart => '/bin/kill -HUP `/bin/cat /var/run/munin/munin-node.pid`',
+ stop => '/bin/kill `/bin/cat /var/run/munin/munin-node.pid`',
+ start => '/opt/munin/sbin/munin-node',
+ hasstatus => false,
+ hasrestart => false,
+ require => [ File['/var/run/munin'], File['/var/log/munin'] ],
+ }
+
+ cron { 'clean_munin_logfile':
+ command => 'rm /var/log/munin/munin-node.log; kill -HUP `cat /var/run/munin/munin-node.pid`',
+ minute => 0,
+ hour => 2,
+ weekday => 0,
+ }
}