aboutsummaryrefslogtreecommitdiff
path: root/manifests
diff options
context:
space:
mode:
authorMicah Anderson <micah@riseup.net>2010-01-29 12:20:53 -0500
committerMicah Anderson <micah@riseup.net>2010-01-29 12:20:53 -0500
commit292dd6b41adde8ca018e7c9b0d976420dc8905bc (patch)
tree301c0e2e85679cc360476082a4948e7cd79f7397 /manifests
parent8766fcdd82cdb67eb4b09f4b2f3f959c0c0ec3d0 (diff)
downloadpuppet-backupninja-292dd6b41adde8ca018e7c9b0d976420dc8905bc.tar.gz
puppet-backupninja-292dd6b41adde8ca018e7c9b0d976420dc8905bc.tar.bz2
allow for a version variable override for the backupninja package,
instead of hard-coding the 0.9.6 release. This changes the installed version to be 'installed', and lets you specify a variable if you wish to install a different version
Diffstat (limited to 'manifests')
-rw-r--r--manifests/client.pp7
1 files changed, 5 insertions, 2 deletions
diff --git a/manifests/client.pp b/manifests/client.pp
index 95e3905..287b02f 100644
--- a/manifests/client.pp
+++ b/manifests/client.pp
@@ -32,8 +32,11 @@ class backupninja::client::defaults {
'' => true,
default => $ssh_dir_manage
}
- package { 'backupninja':
- ensure => '0.9.6-4';
+ if !defined(Package["backupninja"]) {
+ if $backupninja_ensure_version == '' { $backupninja_ensure_version = 'installed' }
+ package { 'backupninja':
+ ensure => $backupninja_ensure_version
+ }
}
file { $configdir:
ensure => directory,