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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 537 - (show annotations) (download)
Tue Dec 7 02:40:37 2010 UTC (13 years, 4 months ago) by misc
File size: 1343 byte(s)
add perl-Socket6 for ipv6 support, since sympa-www spew error in error_log without it
1 class sympa {
2
3 # perl-CGI-Fast is needed for fast cgi
4 # perl-Socket6 is required by perl-IO-Socket-SSL
5 # (optional requirement)
6 $package_list = ['sympa', 'sympa-www', 'perl-CGI-Fast',
7 'perl-Socket6']
8
9 package { $package_list:
10 ensure => installed;
11 }
12
13 $password = extlookup("sympa_password",'x')
14 $ldappass = extlookup("sympa_ldap",'x')
15
16 @@postgresql::user { 'sympa':
17 password => $password,
18 }
19
20 file { '/etc/sympa/sympa.conf':
21 ensure => present,
22 # should be cleaner to have it root owned, but puppet do not support acl
23 # and in any case, config will be reset if it change
24 owner => sympa,
25 group => apache,
26 mode => 640,
27 content => template("sympa/sympa.conf")
28 }
29
30 file { '/etc/sympa/auth.conf':
31 ensure => present,
32 owner => root,
33 group => root,
34 mode => 644,
35 content => template("sympa/auth.conf")
36 }
37
38
39 include apache::mod_fcgid
40 apache::webapp_other{"sympa":
41 webapp_file => "sympa/webapp_sympa.conf",
42 }
43
44 apache::vhost_other_app { "ml.$domain":
45 vhost_file => "sympa/vhost_ml.conf",
46 }
47
48 @@postgresql::database { 'sympa':
49 description => "Sympa database",
50 user => "sympa",
51 require => Postgresql::User["sympa"]
52 }
53
54
55 }
56

  ViewVC Help
Powered by ViewVC 1.1.30