1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
|
class catdap {
$upstream_git = "git://git.${::domain}/web/identity"
# TODO switch to a proper rpm packaging
$rpm_requirement = ['perl-Catalyst-Runtime',
'perl-FCGI',
'perl-Catalyst-Plugin-Authorization-Roles',
'perl-Catalyst-Action-RenderView',
'perl-Catalyst-Model-LDAP-FromAuthentication',
'perl-Catalyst-P-A-Store-LDAP',
'perl-Catalyst-Plugin-Authentication',
'perl-Catalyst-Plugin-Captcha',
'perl-Catalyst-Plugin-ConfigLoader',
'perl-Catalyst-Plugin-I18N',
'perl-Catalyst-Plugin-Session-Store-File',
'perl-Catalyst-Plugin-Static-Simple',
'perl-Catalyst-P-S-State-Cookie',
'perl-Catalyst-View-Email',
'perl-Catalyst-View-TT',
'perl-Config-General',
'perl-Crypt-CBC',
'perl-Data-UUID',
'perl-Email-Valid',
'perl-Moose',
'perl-namespace-autoclean',
'perl-Test-Simple',
'perl-Crypt-Blowfish',
'perl-Email-Date-Format',
'perl-YAML-LibYAML',
'perl-IO-Socket-INET6' ]
package { $rpm_requirement: }
$ldap_password = extlookup('catdap_ldap','x')
catdap::snapshot { "identity.${::domain}":
location => '/var/www/identity',
git_location => $upstream_git,
git_branch => 'topic/production',
}
catdap::snapshot { "identity-trunk.${::domain}":
location => '/var/www/identity-trunk',
git_location => $upstream_git,
}
}
|