File tree 7 files changed +89
-11
lines changed
7 files changed +89
-11
lines changed Original file line number Diff line number Diff line change
1
+ # == Class: postfix::config
2
+ #
3
+ # postfix class configuration
4
+ #
5
+ # === Parameters
6
+ #
7
+ # === Variables
8
+ #
9
+ # === Authors
10
+ #
11
+ # mjhas@github
1
12
class postfix::config (
2
13
$alias_maps = undef ,
3
14
$append_dot_mydomain = undef ,
Original file line number Diff line number Diff line change
1
+ # == Define: postfix::maincf
2
+ #
3
+ # define to build up main.cf for postfix
4
+ #
5
+ # === Parameters
6
+ #
7
+ # === Variables
8
+ #
9
+ # === Authors
10
+ #
11
+ # mjhas@github
1
12
define postfix::config::maincf (
2
13
$ensure = present ,
3
- $value = undef ,
14
+ $value = undef ,
4
15
) {
5
16
Augeas {
6
17
context => ' /files/etc/postfix/main.cf' ,
Original file line number Diff line number Diff line change
1
+ # == Define: postfix::config::maincfhelper
2
+ #
3
+ # build up cf config for postfix
4
+ #
5
+ # === Parameters
6
+ #
7
+ # === Variables
8
+ #
9
+ # === Authors
10
+ #
11
+ # mjhas@github
1
12
define postfix::config::maincfhelper ($value = undef ) {
2
13
if $value {
3
14
postfix::config::maincf { $name: value => $value , }
Original file line number Diff line number Diff line change
1
+ # == Define: postfix::config::mastercf
2
+ #
3
+ # define to build up master.cf
4
+ #
5
+ # === Parameters
6
+ #
7
+ # === Variables
8
+ #
9
+ # === Authors
10
+ #
11
+ # mjhas@github
1
12
define postfix::config::mastercf (
2
13
$ensure = present ,
3
- $type = " unix" ,
4
- $private = " - " ,
5
- $unprivileged = " - " ,
6
- $chroot = " - " ,
7
- $wakeup = " - " ,
8
- $limit = " - " ,
9
- $command = " echo" ,) {
14
+ $type = ' unix' ,
15
+ $private = ' - ' ,
16
+ $unprivileged = ' - ' ,
17
+ $chroot = ' - ' ,
18
+ $wakeup = ' - ' ,
19
+ $limit = ' - ' ,
20
+ $command = ' echo' ,) {
10
21
Augeas {
11
- context => " /files/etc/postfix/master.cf" ,
22
+ context => ' /files/etc/postfix/master.cf' ,
12
23
notify => Service[' postfix' ],
13
24
require => Exec[' postfix' ],
14
25
}
Original file line number Diff line number Diff line change
1
+ # == Class: postfix
2
+ #
3
+ # module to install and configure postfix servers/relays
4
+ # etc.
5
+ #
6
+ # === Parameters
7
+ #
8
+ # === Variables
9
+ #
10
+ # === Authors
11
+ #
12
+ # mjhas@github
1
13
class postfix {
2
14
package { 'postfix' :
3
15
ensure => installed,
Original file line number Diff line number Diff line change
1
+ # == Class: postfix::postgres
2
+ #
3
+ # Set up postgres backend for postfix
4
+ #
5
+ # === Parameters
6
+ #
7
+ # === Variables
8
+ #
9
+ # === Authors
10
+ #
11
+ # mjhas@github
1
12
class postfix::postgres (
2
13
$dbname = undef ,
3
14
$dbuser = undef ,
Original file line number Diff line number Diff line change
1
+ # == Class: postfix::relay
2
+ #
3
+ # Set up a postfix server as a relay
4
+ #
5
+ # === Parameters
6
+ #
7
+ # === Variables
8
+ #
9
+ # === Authors
10
+ #
11
+ # mjhas@github
1
12
class postfix::relay (
2
- $relayhost,
3
- $masquerade_domains,
13
+ $relayhost = undef ,
14
+ $masquerade_domains = $::hostname ,
4
15
$sender_hostname = $::fqdn,
5
16
) {
6
17
include postfix
You can’t perform that action at this time.
0 commit comments