/[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 340 - (show annotations) (download)
Sat Nov 20 11:52:54 2010 UTC (13 years, 5 months ago) by misc
File size: 1657 byte(s)
- do not let file with passwords to be world readable 
    ( even if being readable by apache is not good either, but needed as the password is used by apache )
- use ldaps for sympa
- use the 2 new facter macro and remove the version copied everywhere
- remove hardcoded domain in bugzilla and others

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

  ViewVC Help
Powered by ViewVC 1.1.30