From ac6b7c3ead4e9686dab38fa04113a92b0c9c8495 Mon Sep 17 00:00:00 2001 From: K Jonathan Harker Date: Mon, 9 Mar 2015 12:02:24 -0700 Subject: [PATCH] Add parameter to tune vcsrepo ensure for eplite If the vcsrepo is set to 'ensure => present' then local changes will prevent the repo from updating, but if we 'ensure => latest' then local changes will be overwritten when updating to the latest revision. Change-Id: Ie560a00e70e428b46ac431975caa74d7d05fcad4 --- manifests/init.pp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/manifests/init.pp b/manifests/init.pp index d918527..30b7f9b 100644 --- a/manifests/init.pp +++ b/manifests/init.pp @@ -16,7 +16,8 @@ class etherpad_lite ( $base_log_dir = '/var/log', $base_install_dir = '/opt/etherpad-lite', $nodejs_version = 'v0.10.21', - $eplite_version = 'develop' + $eplite_version = 'develop', + $ep_ensure = 'present', ) { # where the modules are, needed to easily install modules later @@ -85,7 +86,7 @@ class etherpad_lite ( } vcsrepo { "${base_install_dir}/etherpad-lite": - ensure => present, + ensure => $ep_ensure, provider => git, source => 'https://github.com/ether/etherpad-lite.git', owner => $ep_user,