aboutsummaryrefslogtreecommitdiffstats
path: root/modules/sympa/manifests/init.pp
blob: 0cc526729b4e2ddf67b9bbb6121afaa103d0b164 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
class sympa {

    $package_list = ['sympa', 'sympa-www']

    package { $package_list:
        ensure => installed;
    }

    $password = extlookup("sympa_password")
    $ldappass = extlookup("sympa_ldap")

    file { '/etc/sympa/sympa.conf':
        ensure => present,
        owner => root,
        group => root,
        mode => 644,
        content => template("sympa/sympa.conf")
    }

    file { '/etc/sympa/ldap_alias_manager.conf':
        ensure => present,
        owner => root,
        group => root,
        mode => 644,
        content => template("sympa/ldap_alias_manager.conf")
    }

    file { '/etc/sympa/auth.conf':
        ensure => present,
        owner => root,
        group => root,
        mode => 644,
        content => template("sympa/auth.conf")
    }

    file { '/etc/sympa/ldap_alias_entry.tt2':
        ensure => present,
        owner => root,
        group => root,
        mode => 644,
        content => template("sympa/ldap_alias_entry.tt2")
    }

    include apache::mod_fcgid
    apache::webapp_other{"sympa":
	webapp_file => "sympa/webapp_sympa.conf",
    }

   apache::vhost_other_app { "ml.$domain":
        vhost_file => "sympa/vhost_sympa.mageia.org.conf",
   }
}