-
-
Notifications
You must be signed in to change notification settings - Fork 176
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Do not hardcode /etc/postfix In order to bring support for FreeBSD, do not use the hardcoded /etc/postfix path for the directory containing Postfix configuration: FreeBSD ports are installed with a /usr/local/ prefix (by default) so the configuration files on FreeBSD are stored in the /usr/local/etc/postfix directory. * Add support for FreeBSD * Make it possible to tune the "root" group FreeBSD does not have a "root" group. The corresponding group is named "wheel". Allow to setup a custom "root_group", and adjust FreeBSD configuration to set it to "wheel". * Adjust the test suite so that it pass on FreeBSD * Do not depend on $postfix::* before including postfix Some resources parameters depend on the value of variable from the postfix class. Ensure these values are substitued only after including postfix. * Move default values from hiera to init.pp These values are system-dependent, but this helps seeing the usual default value when genering references. * Move $manage_mailname parameter * Explicitely mark internal classes as private * Remove redundant postfix::params inclusion Co-authored-by: Raphaël Pinson <[email protected]> Co-authored-by: Raphaël Pinson <[email protected]>
- Loading branch information
Showing
22 changed files
with
342 additions
and
86 deletions.
There are no files selected for viewing
This file contains 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 |
---|---|---|
@@ -0,0 +1,8 @@ | ||
--- | ||
postfix::confdir: "/usr/local/etc/postfix" | ||
postfix::manage_mailname: false | ||
postfix::manage_mailx: false | ||
postfix::root_group: "wheel" | ||
postfix::params::master_os_template: "postfix/master.cf.FreeBSD.erb" | ||
postfix::params::restart_cmd: "/usr/local/etc/rc.d/postfix reload" | ||
... |
This file contains 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 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 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 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 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 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 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 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 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 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 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 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,5 @@ | ||
class postfix::service { | ||
assert_private() | ||
|
||
$manage_aliases = $postfix::manage_aliases | ||
|
||
|
This file contains 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.