diff options
author | Micah Anderson <micah@riseup.net> | 2009-07-15 17:10:21 -0400 |
---|---|---|
committer | Micah Anderson <micah@riseup.net> | 2009-07-15 17:10:21 -0400 |
commit | 00d3218d1ced516b6cb555155a631c0071d46d80 (patch) | |
tree | 852ba765e0934a8afaba9bd51167ca16687f61fe | |
parent | cbcacb7da154f1be8105ef69466744889b2b6c45 (diff) | |
download | puppet-backupninja-00d3218d1ced516b6cb555155a631c0071d46d80.tar.gz puppet-backupninja-00d3218d1ced516b6cb555155a631c0071d46d80.tar.bz2 |
remove redundant case statements which tested to see if the package ensure version variables were set
changed the $rdiff-backup_ensure_version variable to $rdiff_backup_ensure_version as dashes are not allowed in variable names
-rw-r--r-- | manifests/client.pp | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/manifests/client.pp b/manifests/client.pp index 999108c..d799014 100644 --- a/manifests/client.pp +++ b/manifests/client.pp @@ -87,9 +87,6 @@ class backupninja::client { } class backupninja::client::maildir inherits backupninja::client { - case $rsync_ensure_version { - '': { $rsync_ensure_version = "present" } - } if !defined(Package["rsync"]) { if $rsync_ensure_version == '' { $rsync_ensure_version = 'installed' } @@ -100,14 +97,11 @@ class backupninja::client::maildir inherits backupninja::client { } class backupninja::client::rdiff-backup inherits backupninja::client { - case $rdiff-backup_ensure_version { - '': { $rdiff-backup_ensure_version = "present" } - } if !defined(Package["rdiff-backup"]) { - if $rdiff-backup_ensure_version == '' { $rdiff-backup_ensure_version = 'installed' } + if $rdiff_backup_ensure_version == '' { $rdiff_backup_ensure_version = 'installed' } package { 'rdiff-backup': - ensure => $rdiff-backup_ensure_version, + ensure => $rdiff_backup_ensure_version, } } } |