/[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 340 - (show annotations) (download)
Sat Nov 20 11:52:54 2010 UTC (13 years, 5 months ago) by misc
File size: 919 byte(s)
- do not let file with passwords to be world readable 
    ( even if being readable by apache is not good either, but needed as the password is used by apache )
- use ldaps for sympa
- use the 2 new facter macro and remove the version copied everywhere
- remove hardcoded domain in bugzilla and others

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")
10 $ldappass = extlookup("sympa_ldap")
11
12 file { '/etc/sympa/sympa.conf':
13 ensure => present,
14 # should be cleaner to have it root owned, but puppet do not support acl
15 # and in any case, config will be reset if it change
16 owner => sympa,
17 group => apache,
18 mode => 640,
19 content => template("sympa/sympa.conf")
20 }
21
22 file { '/etc/sympa/auth.conf':
23 ensure => present,
24 owner => root,
25 group => root,
26 mode => 644,
27 content => template("sympa/auth.conf")
28 }
29
30
31 include apache::mod_fcgid
32 apache::webapp_other{"sympa":
33 webapp_file => "sympa/webapp_sympa.conf",
34 }
35
36 apache::vhost_other_app { "ml.$domain":
37 vhost_file => "sympa/vhost_ml.conf",
38 }
39 }
40

  ViewVC Help
Powered by ViewVC 1.1.30