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
This commit is contained in:
K Jonathan Harker 2015-03-09 12:02:24 -07:00
parent 1fcff4d473
commit ac6b7c3ead
1 changed files with 3 additions and 2 deletions

View File

@ -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,