Commit 00d3218d authored by Micah Anderson's avatar Micah Anderson

remove redundant case statements which tested to see if the package ensure...

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
parent cbcacb7d
......@@ -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,
}
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment