File: define-default-params-for-debian.patch

package info (click to toggle)
puppet-module-camptocamp-postfix 5.1.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 576 kB
  • sloc: ruby: 1,544; sh: 10; makefile: 4
file content (36 lines) | stat: -rw-r--r-- 1,312 bytes parent folder | download
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',
 ) {
 }