aboutsummaryrefslogtreecommitdiffstats
path: root/modules/catdap/manifests/snapshot.pp
diff options
context:
space:
mode:
Diffstat (limited to 'modules/catdap/manifests/snapshot.pp')
-rw-r--r--modules/catdap/manifests/snapshot.pp13
1 files changed, 7 insertions, 6 deletions
diff --git a/modules/catdap/manifests/snapshot.pp b/modules/catdap/manifests/snapshot.pp
index 95adefe2..35ca692e 100644
--- a/modules/catdap/manifests/snapshot.pp
+++ b/modules/catdap/manifests/snapshot.pp
@@ -1,17 +1,18 @@
-define catdap::snapshot($location, $svn_location) {
- file { "$location/catdap_local.yml":
+define catdap::snapshot($location, $git_location, $git_branch = 'master') {
+ file { "${location}/catdap_local.yml":
group => apache,
mode => '0640',
content => template('catdap/catdap_local.yml'),
- require => Subversion::Snapshot[$location],
+ require => Git::Snapshot[$location],
}
- subversion::snapshot { $location:
- source => $svn_location
+ git::snapshot { $location:
+ source => $git_location,
+ branch => $git_branch,
}
apache::vhost::catalyst_app { $name:
- script => "$location/script/catdap_fastcgi.pl",
+ script => "${location}/script/catdap_fastcgi.pl",
location => $location,
use_ssl => true,
}