Skip to content

Commit 8289129

Browse files
committed
Eliminate params.pp
params.pp and Inheritance in general is not best Practice anymore. Hiera provides better Definition of Parameters. - move Defaultvalues to Modulelevel-Hiera - eliminate params.pp - sort YAML-Files alphabetically
1 parent 9e812b8 commit 8289129

File tree

25 files changed

+197
-222
lines changed

25 files changed

+197
-222
lines changed

REFERENCE.md

Lines changed: 35 additions & 81 deletions
Large diffs are not rendered by default.

data/common.yaml

Lines changed: 45 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,46 @@
11
---
2-
postfix::params::aliasesseltype: ~
3-
postfix::params::seltype: ~
4-
postfix::params::mailx_package: 'mailx'
5-
postfix::params::master_os_template: "postfix/master.cf.default.erb"
6-
postfix::params::restart_cmd: '/etc/init.d/postfix reload'
7-
...
2+
postfix::alias_maps: hash:/etc/aliases
3+
postfix::amavis_procs: 2
4+
postfix::confdir: "/etc/postfix"
5+
postfix::conffiles: {}
6+
postfix::configs: {}
7+
postfix::hashes: {}
8+
postfix::inet_interfaces: all
9+
postfix::inet_protocols: all
10+
postfix::ldap: false
11+
postfix::ldap_packages: []
12+
postfix::lookup_table_type: hash
13+
postfix::mail_user: vmail
14+
postfix::mailaliases: {}
15+
postfix::mailman: false
16+
postfix::mailx_ensure: present
17+
postfix::mailx_package: mailx
18+
postfix::maincf_source: puppet:///modules/postfix/main.cf
19+
postfix::manage_aliases: true
20+
postfix::manage_conffiles: true
21+
postfix::manage_mailname: true
22+
postfix::manage_mailx: true
23+
postfix::manage_root_alias: true
24+
postfix::maps: {}
25+
postfix::master_bounce_command: bounce
26+
postfix::master_defer_command: bounce
27+
postfix::master_entries: []
28+
postfix::master_os_template: postfix/master.cf.default.erb
29+
postfix::mta: false
30+
postfix::mydestination: "$myhostname, localhost.$mydomain, localhost"
31+
postfix::mynetworks: 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128
32+
postfix::myorigin: "%{facts.networking.fqdn}"
33+
postfix::postfix_ensure: present
34+
postfix::restart_cmd: "/etc/init.d/postfix reload"
35+
postfix::root_group: root
36+
postfix::root_mail_recipient: nobody
37+
postfix::satellite: false
38+
postfix::service_enabled: true
39+
postfix::service_ensure: running
40+
postfix::smtp_listen: 127.0.0.1
41+
postfix::transports: {}
42+
postfix::use_amavisd: false
43+
postfix::use_dovecot_lda: false
44+
postfix::use_schleuder: false
45+
postfix::use_sympa: false
46+
postfix::virtuals: {}

data/os/Alpine.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
---
2-
postfix::params::master_os_template: "postfix/master.cf.debian.erb"
2+
postfix::master_os_template: postfix/master.cf.debian.erb

data/os/FreeBSD.yaml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
postfix::confdir: "/usr/local/etc/postfix"
33
postfix::manage_mailname: false
44
postfix::manage_mailx: false
5-
postfix::root_group: "wheel"
6-
postfix::params::master_os_template: "postfix/master.cf.FreeBSD.erb"
7-
postfix::params::restart_cmd: "/usr/local/etc/rc.d/postfix reload"
8-
...
5+
postfix::master_os_template: postfix/master.cf.FreeBSD.erb
6+
postfix::restart_cmd: "/usr/local/etc/rc.d/postfix reload"
7+
postfix::root_group: wheel

data/os/Solaris.yaml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
---
2-
postfix::params::master_os_template: "postfix/master.cf.Solaris.erb"
3-
postfix::params::restart_cmd: '/usr/sbin/svcadm refresh network/smtp:postfix'
4-
postfix::params::mailx_package: 'mailx'
5-
...
2+
postfix::mailx_package: mailx
3+
postfix::master_os_template: postfix/master.cf.Solaris.erb
4+
postfix::restart_cmd: "/usr/sbin/svcadm refresh network/smtp:postfix"

data/osfamily/Debian.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
postfix::params::mailx_package: 'bsd-mailx'
3-
postfix::params::master_os_template: 'postfix/master.cf.debian.erb'
4-
postfix::ldap_packages: ['postfix-ldap']
5-
...
2+
postfix::ldap_packages:
3+
- postfix-ldap
4+
postfix::mailx_package: bsd-mailx
5+
postfix::master_os_template: postfix/master.cf.debian.erb

data/osfamily/Debian/etch.yaml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,2 @@
11
---
2-
postfix::params::mailx_package: 'mailx'
3-
...
2+
postfix::mailx_package: mailx

data/osfamily/Debian/lenny.yaml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,2 @@
11
---
2-
postfix::params::mailx_package: 'mailx'
3-
...
2+
postfix::mailx_package: mailx

data/osfamily/Debian/sarge.yaml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,2 @@
11
---
2-
postfix::params::mailx_package: 'mailx'
3-
...
2+
postfix::mailx_package: mailx

data/osfamily/RedHat.yaml

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
---
2-
postfix::params::aliasesseltype: 'etc_aliases_t'
3-
postfix::params::seltype: 'postfix_etc_t'
4-
postfix::params::restart_cmd: '/bin/systemctl reload postfix'
5-
postfix::params::master_os_template: 'postfix/master.cf.redhat.erb'
6-
postfix::mta_bin_path: '/usr/sbin/sendmail.postfix'
7-
...
2+
postfix::aliasesseltype: etc_aliases_t
3+
postfix::master_os_template: postfix/master.cf.redhat.erb
4+
postfix::mta_bin_path: "/usr/sbin/sendmail.postfix"
5+
postfix::restart_cmd: "/bin/systemctl reload postfix"
6+
postfix::seltype: postfix_etc_t

0 commit comments

Comments
 (0)