/[adm]/puppet/modules/postfix/manifests/server/primary.pp
ViewVC logotype

Contents of /puppet/modules/postfix/manifests/server/primary.pp

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2674 - (show annotations) (download)
Thu Mar 22 15:18:24 2012 UTC (12 years ago) by misc
File size: 1477 byte(s)
clean postfix module, rework the layout and split it in several file
1 class postfix::server::primary inherits postfix::server {
2
3 package { 'postfix-ldap': }
4
5 # council is here until we fully decide who has aliases in com team,
6 # see https://bugs.mageia.org/show_bug.cgi?id=1345
7 # alumini is a special group for tracking previous members of
8 # the project, so they keep their aliases for a time
9 $aliases_group = ['mga-founders',
10 'mga-packagers',
11 'mga-sysadmin',
12 'mga-council',
13 'mga-alumni',
14 'mga-i18n-committers']
15 $ldap_password = extlookup('postfix_ldap','x')
16 $ldap_servers = get_ldap_servers()
17
18 file {
19 '/etc/postfix/master.cf':
20 content => template('postfix/primary_master.cf');
21 '/etc/postfix/ldap_aliases.conf':
22 content => template('postfix/ldap_aliases.conf');
23 # TODO merge the file with the previous one, for common part (ldap, etc)
24 '/etc/postfix/group_aliases.conf':
25 content => template('postfix/group_aliases.conf');
26 # TODO make it conditional to the presence of sympa
27 '/etc/postfix/sympa_aliases':
28 content => template('postfix/sympa_aliases');
29 '/etc/postfix/virtual_aliases':
30 content => template('postfix/virtual_aliases');
31 }
32
33 exec { 'postmap /etc/postfix/virtual_aliases':
34 refreshonly => true,
35 subscribe => File['/etc/postfix/virtual_aliases'],
36 }
37 }

  ViewVC Help
Powered by ViewVC 1.1.30