summaryrefslogtreecommitdiff
path: root/manifests
diff options
context:
space:
mode:
authorMatt Taggart <taggart@lackof.org>2009-12-30 15:11:39 -0800
committerMatt Taggart <taggart@lackof.org>2009-12-30 15:11:39 -0800
commita8d3b6af4a63724ca31eab772978a35927797b2b (patch)
tree17ae3b040f24dd5fe6ba0b8290817c4c17aae969 /manifests
parenta6477f6edc481b7874ae8b3497343d3ad8ad805f (diff)
add support for setting munin and munin-node package versions
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' |>>