33 |
|
|
34 |
class smtp_server inherits base { |
class smtp_server inherits base { |
35 |
include postgrey |
include postgrey |
|
} |
|
|
|
|
|
class primary_smtp inherits smtp_server { |
|
36 |
file { '/etc/postfix/main.cf': |
file { '/etc/postfix/main.cf': |
37 |
content => template("postfix/primary_main.cf"), |
content => template("postfix/main.cf"), |
38 |
} |
} |
39 |
|
|
40 |
file { '/etc/postfix/master.cf': |
file { '/etc/postfix/transport_regexp': |
41 |
content => template("postfix/primary_master.cf"), |
ensure => present, |
42 |
|
owner => root, |
43 |
|
group => root, |
44 |
|
mode => 644, |
45 |
|
content => template("postfix/transport_regexp"), |
46 |
} |
} |
47 |
|
|
48 |
file { '/etc/postfix/transport_regexp': |
} |
49 |
content => template("postfix/primary_transport_regexp"), |
|
50 |
|
class primary_smtp inherits smtp_server { |
51 |
|
file { '/etc/postfix/master.cf': |
52 |
|
content => template("postfix/primary_master.cf"), |
53 |
} |
} |
54 |
} |
} |
55 |
|
|
56 |
class secondary_smtp inherits smtp_server { |
class secondary_smtp inherits smtp_server { |
|
file { '/etc/postfix/main.cf': |
|
|
content => template("postfix/secondary_main.cf"), |
|
|
} |
|
57 |
} |
} |
58 |
|
|
59 |
} |
} |