/[adm]/puppet/modules/catdap/manifests/init.pp
ViewVC logotype

Contents of /puppet/modules/catdap/manifests/init.pp

Parent Directory Parent Directory | Revision Log Revision Log


Revision 197 - (show annotations) (download)
Mon Nov 8 00:41:39 2010 UTC (13 years, 5 months ago) by misc
File size: 1993 byte(s)
- deploy catdap with ssl and fastcgi

1 class catdap {
2
3 include subversion
4 include subversion::client
5 include apache::mod_fcgid
6
7 $catdap_location = "/var/www/identity"
8 $catdap_vhost = "identity.$domain"
9
10 # TODO switch to a proper rpm packaging
11 $rpm_requirement = ['perl-Catalyst-Runtime',"perl-FCGI", 'perl-Catalyst-Plugin-Authorization-Roles',
12 "perl-Catalyst-Action-RenderView", "perl-Catalyst-Model-LDAP-FromAuthentication", "perl-Catalyst-P-A-Store-LDAP", "perl-Catalyst-Plugin-Authentication", "perl-Catalyst-Plugin-Captcha",
13 "perl-Catalyst-Plugin-ConfigLoader", "perl-Catalyst-Plugin-I18N", "perl-Catalyst-Plugin-Session-Store-File", "perl-Catalyst-Plugin-Static-Simple",
14 "perl-Catalyst-P-S-State-Cookie", "perl-Catalyst-P-S-Store-File", "perl-Catalyst-View-Email",
15 "perl-Catalyst-View-TT", "perl-Config-General", "perl-Crypt-CBC", "perl-Data-UUID",
16 "perl-Email-Valid", "perl-Moose", "perl-namespace-autoclean", "perl-Test-Simple",
17 "perl-Crypt-Blowfish", "perl-Email-Date-Format", "perl-YAML-LibYAML",
18 ]
19
20 package { $rpm_requirement:
21 ensure => installed
22 }
23
24 subversion::snapshot { $catdap_location:
25 source => "svn://svn.mageia.org/soft/identity/CatDap/branches/live"
26 }
27
28 $catdap_password = extlookup('catdap_password')
29
30 file { "$catdap_location/catdap_local.yml":
31 ensure => present,
32 owner => apache,
33 mode => 600,
34 content => template("catdap/catdap_local.yml"),
35 require => Subversion::Snapshot[$catdap_location]
36 }
37
38 apache::vhost_catalyst_app { $catdap_vhost:
39 location => $catdap_location,
40 use_ssl => true,
41 }
42
43 apache::vhost_redirect_ssl { $catdap_vhost: }
44
45 # add a apache vhost
46 # file { "$catdap_vhost.conf":
47 # path => "/etc/httpd/conf/vhosts.d/$catdap_vhost.conf",
48 # ensure => "present",
49 # owner => root,
50 # group => root,
51 # mode => 644,
52 # notify => Service['apache'],
53 # content => template("catdap/catdap_vhost.conf")
54 # }
55 }

  ViewVC Help
Powered by ViewVC 1.1.30