/[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 529 - (hide annotations) (download)
Tue Dec 7 02:40:28 2010 UTC (13 years, 4 months ago) by misc
File size: 1159 byte(s)
- create sympa user & db
1 dmorgan 234 class sympa {
2    
3     $package_list = ['sympa', 'sympa-www']
4    
5     package { $package_list:
6     ensure => installed;
7     }
8    
9 misc 378 $password = extlookup("sympa_password",'x')
10     $ldappass = extlookup("sympa_ldap",'x')
11 dmorgan 234
12 misc 529 @@postgresql::user { 'sympa':
13     password => $password,
14     }
15    
16 dmorgan 234 file { '/etc/sympa/sympa.conf':
17     ensure => present,
18 misc 340 # should be cleaner to have it root owned, but puppet do not support acl
19     # and in any case, config will be reset if it change
20     owner => sympa,
21     group => apache,
22     mode => 640,
23 dmorgan 234 content => template("sympa/sympa.conf")
24     }
25    
26 dmorgan 239 file { '/etc/sympa/auth.conf':
27     ensure => present,
28     owner => root,
29     group => root,
30     mode => 644,
31     content => template("sympa/auth.conf")
32     }
33    
34 boklm 281
35     include apache::mod_fcgid
36     apache::webapp_other{"sympa":
37     webapp_file => "sympa/webapp_sympa.conf",
38     }
39    
40 misc 529 apache::vhost_other_app { "ml.$domain":
41 boklm 284 vhost_file => "sympa/vhost_ml.conf",
42 misc 529 }
43    
44     @@postgresql::database { 'sympa':
45     description => "Sympa database",
46     user => "sympa",
47     require => Postgresql::User["sympa"]
48     }
49    
50    
51 dmorgan 234 }
52    

  ViewVC Help
Powered by ViewVC 1.1.30