summaryrefslogtreecommitdiff
path: root/manifests/client/base.pp
diff options
context:
space:
mode:
authormh <mh@immerda.ch>2013-11-03 17:46:46 +0100
committermh <mh@immerda.ch>2013-11-03 17:46:46 +0100
commitd2a2cb77b9a9ca5deddecdec3d14ac763388929e (patch)
tree6ba8bbb61a49ce75681d1ec9135dea74221b5c7e /manifests/client/base.pp
parent6856c8bb3f11073a47ab705d0e2012a0c90acae3 (diff)
cleanup openbsd manual installation + remove unnecessary files
The manual OpenBSD installation is now so old and not needed anymore.
Diffstat (limited to 'manifests/client/base.pp')
-rw-r--r--manifests/client/base.pp15
1 files changed, 11 insertions, 4 deletions
diff --git a/manifests/client/base.pp b/manifests/client/base.pp
index 3c0ba89..e81028d 100644
--- a/manifests/client/base.pp
+++ b/manifests/client/base.pp
@@ -1,10 +1,14 @@
# Install a basic munin client
class munin::client::base {
+ package { 'munin-node':
+ ensure => installed
+ }
service { 'munin-node':
- ensure => running,
- enable => true,
- hasstatus => true,
- hasrestart => true,
+ ensure => running,
+ enable => true,
+ hasstatus => true,
+ hasrestart => true,
+ require => Package[munin-node],
}
file {'/etc/munin':
ensure => directory,
@@ -14,6 +18,9 @@ class munin::client::base {
}
file {'/etc/munin/munin-node.conf':
content => template("munin/munin-node.conf.${::operatingsystem}"),
+ # this has to be installed before the package, so the postinst can
+ # boot the munin-node without failure!
+ before => Package['munin-node'],
notify => Service['munin-node'],
mode => '0644',
owner => root,