-
-
Notifications
You must be signed in to change notification settings - Fork 176
Draft: Eliminate params.pp #426
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
cocker-cc
wants to merge
1
commit into
voxpupuli:master
Choose a base branch
from
cocker-cc:Eliminate_paramspp
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,7 +1,46 @@ | ||
| --- | ||
| postfix::params::aliasesseltype: ~ | ||
| postfix::params::seltype: ~ | ||
| postfix::params::mailx_package: 'mailx' | ||
| postfix::params::master_os_template: "postfix/master.cf.default.erb" | ||
| postfix::params::restart_cmd: '/etc/init.d/postfix reload' | ||
| ... | ||
| postfix::alias_maps: hash:/etc/aliases | ||
| postfix::amavis_procs: 2 | ||
| postfix::confdir: "/etc/postfix" | ||
| postfix::conffiles: {} | ||
| postfix::configs: {} | ||
| postfix::hashes: {} | ||
| postfix::inet_interfaces: all | ||
| postfix::inet_protocols: all | ||
| postfix::ldap: false | ||
| postfix::ldap_packages: [] | ||
| postfix::lookup_table_type: hash | ||
| postfix::mail_user: vmail | ||
| postfix::mailaliases: {} | ||
| postfix::mailman: false | ||
| postfix::mailx_ensure: present | ||
| postfix::mailx_package: mailx | ||
| postfix::maincf_source: puppet:///modules/postfix/main.cf | ||
| postfix::manage_aliases: true | ||
| postfix::manage_conffiles: true | ||
| postfix::manage_mailname: true | ||
| postfix::manage_mailx: true | ||
| postfix::manage_root_alias: true | ||
| postfix::maps: {} | ||
| postfix::master_bounce_command: bounce | ||
| postfix::master_defer_command: bounce | ||
| postfix::master_entries: [] | ||
| postfix::master_os_template: postfix/master.cf.default.erb | ||
| postfix::mta: false | ||
| postfix::mydestination: "$myhostname, localhost.$mydomain, localhost" | ||
| postfix::mynetworks: 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128 | ||
| postfix::myorigin: "%{facts.networking.fqdn}" | ||
| postfix::postfix_ensure: present | ||
| postfix::restart_cmd: "/etc/init.d/postfix reload" | ||
| postfix::root_group: root | ||
| postfix::root_mail_recipient: nobody | ||
| postfix::satellite: false | ||
| postfix::service_enabled: true | ||
| postfix::service_ensure: running | ||
| postfix::smtp_listen: 127.0.0.1 | ||
| postfix::transports: {} | ||
| postfix::use_amavisd: false | ||
| postfix::use_dovecot_lda: false | ||
| postfix::use_schleuder: false | ||
| postfix::use_sympa: false | ||
| postfix::virtuals: {} | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,2 +1,2 @@ | ||
| --- | ||
| postfix::params::master_os_template: "postfix/master.cf.debian.erb" | ||
| postfix::master_os_template: postfix/master.cf.debian.erb |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,5 +1,4 @@ | ||
| --- | ||
| postfix::params::master_os_template: "postfix/master.cf.Solaris.erb" | ||
| postfix::params::restart_cmd: '/usr/sbin/svcadm refresh network/smtp:postfix' | ||
| postfix::params::mailx_package: 'mailx' | ||
| ... | ||
| postfix::mailx_package: mailx | ||
| postfix::master_os_template: postfix/master.cf.Solaris.erb | ||
| postfix::restart_cmd: "/usr/sbin/svcadm refresh network/smtp:postfix" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,5 +1,5 @@ | ||
| --- | ||
| postfix::params::mailx_package: 'bsd-mailx' | ||
| postfix::params::master_os_template: 'postfix/master.cf.debian.erb' | ||
| postfix::ldap_packages: ['postfix-ldap'] | ||
| ... | ||
| postfix::ldap_packages: | ||
| - postfix-ldap | ||
| postfix::mailx_package: bsd-mailx | ||
| postfix::master_os_template: postfix/master.cf.debian.erb |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,2 @@ | ||
| --- | ||
| postfix::params::mailx_package: 'mailx' | ||
| ... | ||
| postfix::mailx_package: mailx |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,2 @@ | ||
| --- | ||
| postfix::params::mailx_package: 'mailx' | ||
| ... | ||
| postfix::mailx_package: mailx |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,2 @@ | ||
| --- | ||
| postfix::params::mailx_package: 'mailx' | ||
| ... | ||
| postfix::mailx_package: mailx |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,7 +1,6 @@ | ||
| --- | ||
| postfix::params::aliasesseltype: 'etc_aliases_t' | ||
| postfix::params::seltype: 'postfix_etc_t' | ||
| postfix::params::restart_cmd: '/bin/systemctl reload postfix' | ||
| postfix::params::master_os_template: 'postfix/master.cf.redhat.erb' | ||
| postfix::mta_bin_path: '/usr/sbin/sendmail.postfix' | ||
| ... | ||
| postfix::aliasesseltype: etc_aliases_t | ||
| postfix::master_os_template: postfix/master.cf.redhat.erb | ||
| postfix::mta_bin_path: "/usr/sbin/sendmail.postfix" | ||
| postfix::restart_cmd: "/bin/systemctl reload postfix" | ||
| postfix::seltype: postfix_etc_t |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,5 +1,6 @@ | ||
| --- | ||
| postfix::alias_maps: 'lmdb:/etc/aliases' | ||
| postfix::ldap_packages: ['postfix-ldap'] | ||
| postfix::lookup_table_type: 'lmdb' | ||
| postfix::params::mailx_package: 's-nail' | ||
| postfix::alias_maps: lmdb:/etc/aliases | ||
| postfix::ldap_packages: | ||
| - postfix-ldap | ||
| postfix::lookup_table_type: lmdb | ||
| postfix::mailx_package: s-nail |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,5 +1,4 @@ | ||
| --- | ||
| postfix::params::aliasesseltype: 'etc_t' | ||
| postfix::params::seltype: 'etc_t' | ||
| postfix::params::restart_cmd: '/etc/init.d/postfix reload' | ||
| ... | ||
| postfix::aliasesseltype: etc_t | ||
| postfix::restart_cmd: "/etc/init.d/postfix reload" | ||
| postfix::seltype: etc_t |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,4 +1,3 @@ | ||
| --- | ||
| postfix::params::aliasesseltype: 'postfix_etc_t' | ||
| postfix::params::restart_cmd: '/etc/init.d/postfix reload' | ||
| ... | ||
| postfix::aliasesseltype: postfix_etc_t | ||
| postfix::restart_cmd: "/etc/init.d/postfix reload" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,2 @@ | ||
| --- | ||
| postfix::params::restart_cmd: '/etc/init.d/postfix reload' | ||
| ... | ||
| postfix::restart_cmd: "/etc/init.d/postfix reload" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,4 +1,4 @@ | ||
| --- | ||
|
|
||
| postfix::params::mailx_package: 's-nail' | ||
| postfix::ldap_packages: ['postfix-ldap'] | ||
| postfix::ldap_packages: | ||
| - postfix-ldap | ||
| postfix::mailx_package: s-nail |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Only values which are OS-dependent (i.e. present in multiple hiera .yaml files) should be in common.yaml. Values which are not OS-dependent must be kept in init.pp so that they are documented in REFERENCE.md.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm afraid having to disagree here. Since the Appearance of Hiera, APL (automatic Parameterlookup) is definitely the prefered Method for Defaultvalues. OS-Dependency is not a Criterion.
IMHO
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The Vox Pupuli convention is as @smortex explained: OS-independent defaults as class parameter defaults so that they are documented in
REFERENCE.md. OS-dependent defaults go into hiera data.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Where to find this?
The Link to Puppet Labs style guide in your README.md is dead, as well as the Link on voxpupuli.org
This Puppet-7-Style-Guide reads:
This exactly is, what I stick to, because
is plain inconsistent IMHO. The whole Sense of Hiera is to decouple Data from Code, to make the Code OS-agnostic. This very importand Paradigm should not be sacrificed for
REFERENCE.md. (why not letpuppet strings generateread from Hiera? *wink*)Recognizing, that this is the wrong Location to discuss this Subject, feel free to adopt my Changes under your own Author-Name.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The Vox Pupuli convention is documented here: https://voxpupuli.org/docs/reviewing_pr/
Quoting that page:
Yes, Perforce broke all of the puppet docs links.