/[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 97 - (show annotations) (download)
Thu Nov 4 17:51:05 2010 UTC (13 years, 5 months ago) by misc
File size: 1714 byte(s)
- refactor the vhost
- fix the url used for svn checkout
- add a requires from catdap config to svn checkout for ordering purpose
- move extlookup call outside of template
- fix the name of apache config file
- fix the naming of the ldap server  

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',
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
18 package { $rpm_requirement:
19 ensure => installed
20 }
21
22 subversion::snapshot { $catdap_location:
23 source => "svn://svn.mageia.org/soft/identity/CatDap/branches/live"
24 }
25
26 # add a catdap config file
27 file { "$catdap_location/catdap_local.yml":
28 ensure => present,
29 owner => apache,
30 mode => 600,
31 content => template("catdap/catdap_local.yml"),
32 require => Subversion::Snapshot[$catdap_location]
33 }
34
35 $catdap_password = extlookup('catdap_password')
36 # add a apache vhost
37 file { "$catdap_vhost.conf":
38 path => "/etc/httpd/conf/vhosts.d/$catdap_vhost.conf",
39 ensure => "present",
40 owner => root,
41 group => root,
42 mode => 644,
43 notify => Service['apache'],
44 content => template("catdap/catdap_vhost.conf")
45 }
46 }

  ViewVC Help
Powered by ViewVC 1.1.30