summaryrefslogtreecommitdiff
path: root/manifests
diff options
context:
space:
mode:
Diffstat (limited to 'manifests')
-rw-r--r--manifests/client/package.pp7
-rw-r--r--manifests/host.pp7
2 files changed, 12 insertions, 2 deletions
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' |>>