1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36
|
Description: Define default params for Debian
Without these default params, one has to call like this:
class { 'postfix::params':
mailx_package => 'bsd-mailx',
restart_cmd => '/etc/init.d/postfix restart',
master_os_template => 'postfix/master.cf.debian.erb',
aliasesseltype => undef,
seltype => 'etc_t',
}
before being able to call the normal class { 'postfix': }.
.
So adding this patch simplifies a lot the work... :)
Author: Thomas Goirand <zigo@debian.org>
Forwarded: not-needed
Last-Update: 2021-04-17
Index: puppet-module-camptocamp-postfix/manifests/params.pp
===================================================================
--- puppet-module-camptocamp-postfix.orig/manifests/params.pp
+++ puppet-module-camptocamp-postfix/manifests/params.pp
@@ -20,10 +20,10 @@
# @api private
#
class postfix::params (
- String $mailx_package,
- String $restart_cmd,
- String $master_os_template,
- Optional[String] $aliasesseltype,
- Optional[String] $seltype,
+ String $mailx_package = 'bsd-mailx',
+ String $restart_cmd = '/etc/init.d/postfix restart',
+ String $master_os_template = 'postfix/master.cf.debian.erb',
+ Optional[String] $aliasesseltype = undef,
+ Optional[String] $seltype ='etc_t',
) {
}
|