/[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 98 - (show annotations) (download)
Thu Nov 4 18:03:39 2010 UTC (14 years, 1 month ago) by misc
File size: 1688 byte(s)
- move the call to extlookup before the template, not after 

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 $catdap_password = extlookup('catdap_password')
27
28 file { "$catdap_location/catdap_local.yml":
29 ensure => present,
30 owner => apache,
31 mode => 600,
32 content => template("catdap/catdap_local.yml"),
33 require => Subversion::Snapshot[$catdap_location]
34 }
35
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