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

Contents of /puppet/modules/postfix/manifests/init.pp

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1289 - (show annotations) (download)
Tue Mar 8 15:34:36 2011 UTC (13 years, 1 month ago) by misc
File size: 1958 byte(s)
make sure that the proper ldap support is installed
1 class postfix {
2
3 class base {
4 package { postfix:
5 ensure => installed
6 }
7 package { 'nail':
8 ensure => installed
9 }
10 service { postfix:
11 ensure => running,
12 subscribe => [ Package['postfix']],
13 path => "/etc/init.d/postfix"
14 }
15 }
16
17 file { '/etc/postfix/main.cf':
18 ensure => present,
19 owner => root,
20 group => root,
21 mode => 644,
22 require => Package["postfix"],
23 content => "",
24 notify => [Service['postfix']]
25 }
26
27
28 class simple_relay inherits base {
29 file { '/etc/postfix/main.cf':
30 content => template("postfix/simple_relay_main.cf"),
31 }
32 }
33
34 class smtp_server inherits base {
35 include postgrey
36 include amavis
37 include spamassassin
38 file { '/etc/postfix/main.cf':
39 content => template("postfix/main.cf"),
40 }
41
42 file { '/etc/postfix/transport_regexp':
43 ensure => present,
44 owner => root,
45 group => root,
46 mode => 644,
47 content => template("postfix/transport_regexp"),
48 }
49
50 }
51
52 class primary_smtp inherits smtp_server {
53 file { '/etc/postfix/master.cf':
54 ensure => present,
55 owner => root,
56 group => root,
57 mode => 644,
58 content => template("postfix/primary_master.cf"),
59 }
60
61 package { "postfix-ldap":
62 ensure => installed
63 }
64
65 $aliases_group = ['mga-founders']
66 $ldap_password = extlookup("postfix_ldap",'x')
67 file { '/etc/postfix/ldap_aliases.conf':
68 ensure => present,
69 owner => root,
70 group => root,
71 mode => 644,
72 content => template("postfix/ldap_aliases.conf"),
73 }
74 }
75
76 class secondary_smtp inherits smtp_server {
77 }
78
79 }

  ViewVC Help
Powered by ViewVC 1.1.30