From 022e824d8a006f1ef4e742b6af5176daecda1cd0 Mon Sep 17 00:00:00 2001 From: Matt Taggart Date: Wed, 30 Dec 2009 21:22:17 -0800 Subject: switch to correct way of checking if the variable is set --- manifests/client/package.pp | 4 +--- manifests/host.pp | 4 +--- 2 files changed, 2 insertions(+), 6 deletions(-) (limited to 'manifests') diff --git a/manifests/client/package.pp b/manifests/client/package.pp index 7f8a7ba..0fc3529 100644 --- a/manifests/client/package.pp +++ b/manifests/client/package.pp @@ -1,8 +1,6 @@ class munin::client::package inherits munin::client::base { - case $munin_node_ensure_version { - '': { $munin_node_ensure_version = "installed" } - } + if $munin_node_ensure_version == '' { $munin_node_ensure_version = 'installed' } package { 'munin-node': ensure => $munin_node_ensure_version } Service['munin-node']{ diff --git a/manifests/host.pp b/manifests/host.pp index 3306195..e6b3916 100644 --- a/manifests/host.pp +++ b/manifests/host.pp @@ -5,9 +5,7 @@ class munin::host inherits munin { - case $munin_ensure_version { - '': { $munin_ensure_version = "installed" } - } + if $munin_ensure_version == '' { $munin_ensure_version = 'installed' } package {"munin": ensure => $munin_ensure_version, } -- cgit v1.2.3