/[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 529 - (show 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 class sympa {
2
3 $package_list = ['sympa', 'sympa-www']
4
5 package { $package_list:
6 ensure => installed;
7 }
8
9 $password = extlookup("sympa_password",'x')
10 $ldappass = extlookup("sympa_ldap",'x')
11
12 @@postgresql::user { 'sympa':
13 password => $password,
14 }
15
16 file { '/etc/sympa/sympa.conf':
17 ensure => present,
18 # 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 content => template("sympa/sympa.conf")
24 }
25
26 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
35 include apache::mod_fcgid
36 apache::webapp_other{"sympa":
37 webapp_file => "sympa/webapp_sympa.conf",
38 }
39
40 apache::vhost_other_app { "ml.$domain":
41 vhost_file => "sympa/vhost_ml.conf",
42 }
43
44 @@postgresql::database { 'sympa':
45 description => "Sympa database",
46 user => "sympa",
47 require => Postgresql::User["sympa"]
48 }
49
50
51 }
52

  ViewVC Help
Powered by ViewVC 1.1.30