diff options
author | Matt Taggart <taggart@lackof.org> | 2009-12-30 21:22:17 -0800 |
---|---|---|
committer | Matt Taggart <taggart@lackof.org> | 2009-12-30 21:22:17 -0800 |
commit | 022e824d8a006f1ef4e742b6af5176daecda1cd0 (patch) | |
tree | 1c79fc63611e88a7e3e52dea10469ef1270e5493 | |
parent | da6ded035a7074306587c76e8d3b90cda6b3bdc8 (diff) |
switch to correct way of checking if the variable is set
-rw-r--r-- | manifests/client/package.pp | 4 | ||||
-rw-r--r-- | manifests/host.pp | 4 |
2 files changed, 2 insertions, 6 deletions
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, } |