aboutsummaryrefslogtreecommitdiffstats
path: root/modules/catdap/manifests
diff options
context:
space:
mode:
Diffstat (limited to 'modules/catdap/manifests')
-rw-r--r--modules/catdap/manifests/init.pp13
-rw-r--r--modules/catdap/manifests/snapshot.pp13
2 files changed, 13 insertions, 13 deletions
diff --git a/modules/catdap/manifests/init.pp b/modules/catdap/manifests/init.pp
index 9cb4d22f..f7172208 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.${::domain}/web/identity"
# TODO switch to a proper rpm packaging
$rpm_requirement = ['perl-Catalyst-Runtime',
@@ -16,7 +16,6 @@ class catdap {
'perl-Catalyst-Plugin-Session-Store-File',
'perl-Catalyst-Plugin-Static-Simple',
'perl-Catalyst-P-S-State-Cookie',
- 'perl-Catalyst-P-S-Store-File',
'perl-Catalyst-View-Email',
'perl-Catalyst-View-TT',
'perl-Config-General',
@@ -29,20 +28,20 @@ class catdap {
'perl-Crypt-Blowfish',
'perl-Email-Date-Format',
'perl-YAML-LibYAML',
- 'perl-Catalyst-Plugin-Unicode-Encoding',
'perl-IO-Socket-INET6' ]
package { $rpm_requirement: }
$ldap_password = extlookup('catdap_ldap','x')
- catdap::snapshot { "identity.$::domain":
+ 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":
+ 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..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,
}