From a8d3b6af4a63724ca31eab772978a35927797b2b Mon Sep 17 00:00:00 2001 From: Matt Taggart Date: Wed, 30 Dec 2009 15:11:39 -0800 Subject: add support for setting munin and munin-node package versions --- manifests/client/package.pp | 7 ++++++- manifests/host.pp | 7 ++++++- 2 files changed, 12 insertions(+), 2 deletions(-) (limited to 'manifests') 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' |>> -- cgit v1.2.3