aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--modules/catdap/manifests/init.pp7
-rw-r--r--modules/catdap/manifests/snapshot.pp7
2 files changed, 8 insertions, 6 deletions
diff --git a/modules/catdap/manifests/init.pp b/modules/catdap/manifests/init.pp
index 9cb4d22f..41ba5d13 100644
--- a/modules/catdap/manifests/init.pp
+++ b/modules/catdap/manifests/init.pp
@@ -1,6 +1,6 @@
class catdap {
- $upstream_svn = 'svn://svn.mageia.org/svn/soft/identity/CatDap/'
+ $upstream_git = 'git://git.mageia.org/web/identity'
# TODO switch to a proper rpm packaging
$rpm_requirement = ['perl-Catalyst-Runtime',
@@ -38,11 +38,12 @@ class catdap {
catdap::snapshot { "identity.$::domain":
location => '/var/www/identity',
- svn_location => "$upstream_svn/branches/live"
+ git_location => $upstream_git,
+ git_branch => 'topic/production',
}
catdap::snapshot { "identity-trunk.$::domain":
location => '/var/www/identity-trunk',
- svn_location => "$upstream_svn/trunk"
+ git_location => $upstream_git,
}
}
diff --git a/modules/catdap/manifests/snapshot.pp b/modules/catdap/manifests/snapshot.pp
index 95adefe2..d087596f 100644
--- a/modules/catdap/manifests/snapshot.pp
+++ b/modules/catdap/manifests/snapshot.pp
@@ -1,4 +1,4 @@
-define catdap::snapshot($location, $svn_location) {
+define catdap::snapshot($location, $git_location, $git_branch) {
file { "$location/catdap_local.yml":
group => apache,
mode => '0640',
@@ -6,8 +6,9 @@ define catdap::snapshot($location, $svn_location) {
require => Subversion::Snapshot[$location],
}
- subversion::snapshot { $location:
- source => $svn_location
+ git::snapshot { $location:
+ source => $git_location,
+ branch => $git_branch,
}
apache::vhost::catalyst_app { $name: