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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 94 - (hide annotations) (download)
Thu Nov 4 17:06:29 2010 UTC (13 years, 5 months ago) by misc
File size: 1577 byte(s)
- remove duplicate packages

1 misc 90 class catdap {
2    
3     include subversion
4     include subversion::client
5     include apache::mod_fcgid
6    
7     $catdap_location = "/var/www/identity"
8    
9     # TODO switch to a proper rpm packaging
10     $rpm_requirement = ['perl-Catalyst-Runtime',
11     "perl-Catalyst-Action-RenderView", "perl-Catalyst-Model-LDAP-FromAuthentication", "perl-Catalyst-P-A-Store-LDAP", "perl-Catalyst-Plugin-Authentication", "perl-Catalyst-Plugin-Captcha",
12     "perl-Catalyst-Plugin-ConfigLoader", "perl-Catalyst-Plugin-I18N", "perl-Catalyst-Plugin-Session-Store-File", "perl-Catalyst-Plugin-Static-Simple",
13 misc 94 "perl-Catalyst-P-S-State-Cookie", "perl-Catalyst-P-S-Store-File", "perl-Catalyst-View-Email",
14 misc 90 "perl-Catalyst-View-TT", "perl-Config-General", "perl-Crypt-CBC", "perl-Data-UUID",
15     "perl-Email-Valid", "perl-Moose", "perl-namespace-autoclean", "perl-Test-Simple" ]
16    
17     package { $rpm_requirement:
18     ensure => installed
19     }
20    
21     subversion::snapshot { $catdap_location:
22     source => "svn+ssh://svn.mageia.org/srv/mx2-dd0/svn/soft/identity/CatDap/branches/live"
23     }
24    
25     # add a catdap config file
26     file { "$catdap_location/catdap_local.yml":
27     ensure => present,
28     owner => apache,
29     mode => 600,
30     content => template("catdap/catdap_local.yml")
31     }
32    
33     # add a apache vhost
34     file { "identity.$domain.conf":
35     path => "/etc/httpd/conf/vhosts.d/$name",
36     ensure => "present",
37     owner => root,
38     group => root,
39     mode => 644,
40     notify => Service['apache'],
41     content => template("catdap/catdap_vhost.conf")
42     }
43     }

  ViewVC Help
Powered by ViewVC 1.1.30