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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 540 - (hide annotations) (download)
Tue Dec 7 03:21:30 2010 UTC (13 years, 4 months ago) by misc
File size: 1346 byte(s)
- more meaningful name
1 dmorgan 234 class sympa {
2 misc 533
3     # perl-CGI-Fast is needed for fast cgi
4 misc 537 # 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 dmorgan 234
9     package { $package_list:
10     ensure => installed;
11     }
12    
13 misc 378 $password = extlookup("sympa_password",'x')
14 misc 540 $ldap_passwd = extlookup("sympa_ldap",'x')
15 dmorgan 234
16 misc 529 @@postgresql::user { 'sympa':
17     password => $password,
18     }
19    
20 dmorgan 234 file { '/etc/sympa/sympa.conf':
21     ensure => present,
22 misc 340 # 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 dmorgan 234 content => template("sympa/sympa.conf")
28     }
29    
30 dmorgan 239 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 boklm 281
39     include apache::mod_fcgid
40     apache::webapp_other{"sympa":
41     webapp_file => "sympa/webapp_sympa.conf",
42     }
43    
44 misc 529 apache::vhost_other_app { "ml.$domain":
45 boklm 284 vhost_file => "sympa/vhost_ml.conf",
46 misc 529 }
47    
48     @@postgresql::database { 'sympa':
49     description => "Sympa database",
50     user => "sympa",
51     require => Postgresql::User["sympa"]
52     }
53    
54    
55 dmorgan 234 }
56    

  ViewVC Help
Powered by ViewVC 1.1.30