1 |
misc |
90 |
class catdap { |
2 |
|
|
|
3 |
misc |
655 |
$upstream_svn = "svn://svn.mageia.org/svn/soft/identity/CatDap/" |
4 |
misc |
90 |
|
5 |
|
|
# TODO switch to a proper rpm packaging |
6 |
misc |
107 |
$rpm_requirement = ['perl-Catalyst-Runtime',"perl-FCGI", 'perl-Catalyst-Plugin-Authorization-Roles', |
7 |
misc |
90 |
"perl-Catalyst-Action-RenderView", "perl-Catalyst-Model-LDAP-FromAuthentication", "perl-Catalyst-P-A-Store-LDAP", "perl-Catalyst-Plugin-Authentication", "perl-Catalyst-Plugin-Captcha", |
8 |
|
|
"perl-Catalyst-Plugin-ConfigLoader", "perl-Catalyst-Plugin-I18N", "perl-Catalyst-Plugin-Session-Store-File", "perl-Catalyst-Plugin-Static-Simple", |
9 |
misc |
94 |
"perl-Catalyst-P-S-State-Cookie", "perl-Catalyst-P-S-Store-File", "perl-Catalyst-View-Email", |
10 |
misc |
90 |
"perl-Catalyst-View-TT", "perl-Config-General", "perl-Crypt-CBC", "perl-Data-UUID", |
11 |
buchan |
139 |
"perl-Email-Valid", "perl-Moose", "perl-namespace-autoclean", "perl-Test-Simple", |
12 |
misc |
660 |
"perl-Crypt-Blowfish", "perl-Email-Date-Format", "perl-YAML-LibYAML","perl-Catalyst-Plugin-Unicode-Encoding", "perl-IO-Socket-INET6", |
13 |
buchan |
139 |
] |
14 |
misc |
90 |
|
15 |
|
|
package { $rpm_requirement: |
16 |
|
|
ensure => installed |
17 |
|
|
} |
18 |
|
|
|
19 |
misc |
624 |
$ldap_password = extlookup('catdap_ldap','x') |
20 |
misc |
98 |
|
21 |
misc |
655 |
|
22 |
|
|
|
23 |
|
|
define catdap_snapshot($location, $svn_location) { |
24 |
|
|
file { "$location/catdap_local.yml": |
25 |
|
|
ensure => present, |
26 |
|
|
owner => root, |
27 |
|
|
group => apache, |
28 |
|
|
mode => 640, |
29 |
|
|
content => template("catdap/catdap_local.yml"), |
30 |
|
|
require => Subversion::Snapshot[$location], |
31 |
|
|
} |
32 |
|
|
|
33 |
|
|
subversion::snapshot { $location: |
34 |
|
|
source => $svn_location |
35 |
|
|
} |
36 |
|
|
|
37 |
|
|
apache::vhost_catalyst_app { $name: |
38 |
|
|
script => "$location/script/catdap_fastcgi.pl", |
39 |
|
|
location => $location, |
40 |
|
|
use_ssl => true, |
41 |
|
|
} |
42 |
|
|
|
43 |
|
|
apache::vhost_redirect_ssl { $name: } |
44 |
misc |
90 |
} |
45 |
|
|
|
46 |
misc |
655 |
catdap_snapshot { "identity.$domain": |
47 |
|
|
location => "/var/www/identity", |
48 |
|
|
svn_location => "$upstream_svn/branches/live" |
49 |
misc |
197 |
} |
50 |
|
|
|
51 |
misc |
655 |
catdap_snapshot { "identity-trunk.$domain": |
52 |
|
|
location => "/var/www/identity-trunk", |
53 |
|
|
svn_location => "$upstream_svn/trunk" |
54 |
|
|
} |
55 |
misc |
564 |
|
56 |
misc |
90 |
} |