summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--README12
-rw-r--r--manifests/client/package.pp7
-rw-r--r--manifests/host.pp7
3 files changed, 24 insertions, 2 deletions
diff --git a/README b/README
index e3f5136..5018472 100644
--- a/README
+++ b/README
@@ -56,12 +56,24 @@ To use this module, follow these directions:
e. In the node definition in your site.pp for your main munin host, add the following:
include munin::host
+
+ If you want to specify a particular package version for the main munin
+ host, you can set the $munin_ensure_version variable _before_ the above
+ include, like this
+
+ $munin_ensure_version = "1.2.6-17"
f. On each node that will gather munin statistics, add this line to that node's entry
in site.pp (you may want to also add this to your main munin host):
include munin::client
+ If you want to specify a particular package version for the munin
+ client, you can set the $munin_ensure_version variable _before_ the
+ above include, like this
+
+ $munin-node_ensure_version = "1.2.6-17"
+
g. If there are particular munin plugins you want to enable or configure, you define them
in the node definition, like follows:
diff --git a/manifests/client/package.pp b/manifests/client/package.pp
index 58f40da..482ca4f 100644
--- a/manifests/client/package.pp
+++ b/manifests/client/package.pp
@@ -1,5 +1,10 @@
class munin::client::package inherits munin::client::base {
- package { 'munin-node': ensure => installed }
+
+ case $munin-node_ensure_version {
+ '': { $munin-node_ensure_version = "installed" }
+ }
+
+ package { 'munin-node': ensure => $munin-node_ensure_version }
Service['munin-node']{
require => Package[munin-node],
}
diff --git a/manifests/host.pp b/manifests/host.pp
index c1fa3db..3306195 100644
--- a/manifests/host.pp
+++ b/manifests/host.pp
@@ -4,7 +4,12 @@
class munin::host inherits munin
{
- package {"munin": ensure => installed, }
+
+ case $munin_ensure_version {
+ '': { $munin_ensure_version = "installed" }
+ }
+
+ package {"munin": ensure => $munin_ensure_version, }
File <<| tag == 'munin' |>>