From 292dd6b41adde8ca018e7c9b0d976420dc8905bc Mon Sep 17 00:00:00 2001 From: Micah Anderson Date: Fri, 29 Jan 2010 12:20:53 -0500 Subject: 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 --- manifests/client.pp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'manifests') 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, -- cgit v1.2.3