summaryrefslogtreecommitdiff
path: root/manifests/sympa.pp
blob: 2ce336b2e76a2d5b04f609c50b9e5ae1b7426804 (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
class mail::sympa {
  #
  # Database configuration
  #
  database::instance { "$sympa_database_name":
    password => "$sympa_database_password",
  }

  group { 'sympa':
    ensure => present,
  }

  user { 'sympa':
    ensure  => present,
    gid     => 'sympa',
    require => Group['sympa'],
  }

  file { "/etc/sympa":
    ensure => directory,
    owner  => postfix,
    group  => root,
    mode   => 0755,
  }

  file { "/etc/sympa/sympa.conf":
    ensure  => present,
    owner   => sympa,
    group   => sympa,
    mode    => 0640,
    content => template('mail/sympa/sympa.conf.erb'),
    require => [ File['/etc/sympa'], User['sympa'] ],
  }
}