Skip to content

Commit 5ca7c77

Browse files
author
Chris Ganderton
committed
Fix up to pass most lints (apart from 80char check)
1 parent 6789dd0 commit 5ca7c77

File tree

7 files changed

+89
-11
lines changed

7 files changed

+89
-11
lines changed

manifests/config.pp

+11
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,14 @@
1+
# == Class: postfix::config
2+
#
3+
# postfix class configuration
4+
#
5+
# === Parameters
6+
#
7+
# === Variables
8+
#
9+
# === Authors
10+
#
11+
# mjhas@github
112
class postfix::config (
213
$alias_maps = undef,
314
$append_dot_mydomain = undef,

manifests/config/maincf.pp

+12-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,17 @@
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
112
define postfix::config::maincf(
213
$ensure = present,
3-
$value=undef,
14+
$value = undef,
415
) {
516
Augeas {
617
context => '/files/etc/postfix/main.cf',

manifests/config/maincfhelper.pp

+11
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,14 @@
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
112
define postfix::config::maincfhelper ($value = undef) {
213
if $value {
314
postfix::config::maincf { $name: value => $value, }

manifests/config/mastercf.pp

+19-8
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,25 @@
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
112
define postfix::config::mastercf (
213
$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',) {
1021
Augeas {
11-
context => "/files/etc/postfix/master.cf",
22+
context => '/files/etc/postfix/master.cf',
1223
notify => Service['postfix'],
1324
require => Exec['postfix'],
1425
}

manifests/init.pp

+12
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,15 @@
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
113
class postfix {
214
package { 'postfix':
315
ensure => installed,

manifests/postgres.pp

+11
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,14 @@
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
112
class postfix::postgres (
213
$dbname = undef,
314
$dbuser = undef,

manifests/relay.pp

+13-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,17 @@
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
112
class postfix::relay (
2-
$relayhost,
3-
$masquerade_domains,
13+
$relayhost = undef,
14+
$masquerade_domains = $::hostname,
415
$sender_hostname = $::fqdn,
516
) {
617
include postfix

0 commit comments

Comments
 (0)