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'] ], } package { [ 'apache2-suexec', 'libapache2-mod-fcgid' ]: ensure => present, } apache::module { "fcgid": ensure => present, require => Package["fcgid"], } apache::module { "suexec": ensure => present, require => Package["apache2-suexec"], } }