summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorintrigeri <intrigeri@boum.org>2018-01-09 21:26:22 +0000
committerMicah Anderson <micah@riseup.net>2018-06-19 11:49:29 -0400
commit6743a08b90a118130edd3e59449c5b389fb1796e (patch)
treec0d040acaaff0a34885c9de6e98129ec2d2a7ee0
parent514b76a919b6f5f6548ff8fd189a7e20cb3c4832 (diff)
Remove obsolete ensure parameter for concat::fragment.
Recent versions of the concat module error out when one passes an ensure parameter.
-rw-r--r--manifests/header_checks_snippet.pp3
-rw-r--r--manifests/tlspolicy_snippet.pp8
-rw-r--r--manifests/transport_regexp_snippet.pp7
-rw-r--r--manifests/virtual_regexp_snippet.pp7
4 files changed, 7 insertions, 18 deletions
diff --git a/manifests/header_checks_snippet.pp b/manifests/header_checks_snippet.pp
index 05929a3..4c8df86 100644
--- a/manifests/header_checks_snippet.pp
+++ b/manifests/header_checks_snippet.pp
@@ -6,7 +6,6 @@ See the postfix::header_checks class for details.
Parameters:
- *source* or *content*: source or content of the header_checks snippet
-- *ensure*: present (default) or absent
Requires:
- Class["postfix"]
@@ -24,7 +23,6 @@ Example usage:
*/
define postfix::header_checks_snippet (
- $ensure = "present",
$source = '',
$content = undef
) {
@@ -42,7 +40,6 @@ define postfix::header_checks_snippet (
$fragment = "postfix_header_checks_${name}"
concat::fragment { "$fragment":
- ensure => "$ensure",
target => '/etc/postfix/header_checks',
}
diff --git a/manifests/tlspolicy_snippet.pp b/manifests/tlspolicy_snippet.pp
index b63f812..77fc457 100644
--- a/manifests/tlspolicy_snippet.pp
+++ b/manifests/tlspolicy_snippet.pp
@@ -7,7 +7,6 @@ See the postfix::tlspolicy class for details.
Parameters:
- *name*: name of destination domain Postfix will lookup. See TLS_README.
- *value*: right-hand part of the tls_policy map
-- *ensure*: present/absent, defaults to present.
Requires:
- Class["postfix"]
@@ -28,16 +27,15 @@ Example usage:
*/
-define postfix::tlspolicy_snippet ($ensure="present", $value = false) {
+define postfix::tlspolicy_snippet ($value = false) {
- if ($value == false) and ($ensure == "present") {
- fail("The value parameter must be set when using the postfix::tlspolicy_snippet define with ensure=present.")
+ if $value == false {
+ fail("The value parameter must be set when using the postfix::tlspolicy_snippet define.")
}
include postfix::tlspolicy
concat::fragment { "postfix_tlspolicy_${name}":
- ensure => "$ensure",
content => "${name} ${value}\n",
target => "$postfix::tlspolicy::postfix_merged_tlspolicy",
}
diff --git a/manifests/transport_regexp_snippet.pp b/manifests/transport_regexp_snippet.pp
index 2b13ed1..9d37f2b 100644
--- a/manifests/transport_regexp_snippet.pp
+++ b/manifests/transport_regexp_snippet.pp
@@ -6,7 +6,6 @@ See the postfix::transport_regexp class for details.
Parameters:
- *source* or *content*: source or content of the transport_regexp snippet
-- *ensure*: present (default) or absent
Requires:
- Class["postfix"]
@@ -24,7 +23,6 @@ Example usage:
*/
define postfix::transport_regexp_snippet (
- $ensure = "present",
$source = '',
$content = undef
) {
@@ -37,8 +35,8 @@ define postfix::transport_regexp_snippet (
fail("Only one of \$source or \$content must specified for postfix::transport_regexp_snippet ${name}")
}
- if ($value == false) and ($ensure == "present") {
- fail("The value parameter must be set when using the postfix::transport_regexp_snippet define with ensure=present.")
+ if $value == false {
+ fail("The value parameter must be set when using the postfix::transport_regexp_snippet define.")
}
include postfix::transport_regexp
@@ -46,7 +44,6 @@ define postfix::transport_regexp_snippet (
$snippetfile = "${postfix::transport_regexp::postfix_transport_regexp_snippets_dir}/${name}"
file { "$snippetfile":
- ensure => "$ensure",
mode => 600,
owner => root,
group => 0,
diff --git a/manifests/virtual_regexp_snippet.pp b/manifests/virtual_regexp_snippet.pp
index bd9a982..e6202df 100644
--- a/manifests/virtual_regexp_snippet.pp
+++ b/manifests/virtual_regexp_snippet.pp
@@ -6,7 +6,6 @@ See the postfix::virtual_regexp class for details.
Parameters:
- *source* or *content*: source or content of the virtual_regexp snippet
-- *ensure*: present (default) or absent
Requires:
- Class["postfix"]
@@ -24,7 +23,6 @@ Example usage:
*/
define postfix::virtual_regexp_snippet (
- $ensure = "present",
$source = '',
$content = undef
) {
@@ -37,8 +35,8 @@ define postfix::virtual_regexp_snippet (
fail("Only one of \$source or \$content must specified for postfix::virtual_regexp_snippet ${name}")
}
- if ($value == false) and ($ensure == "present") {
- fail("The value parameter must be set when using the postfix::virtual_regexp_snippet define with ensure=present.")
+ if $value == false {
+ fail("The value parameter must be set when using the postfix::virtual_regexp_snippet define.")
}
include postfix::virtual_regexp
@@ -46,7 +44,6 @@ define postfix::virtual_regexp_snippet (
$snippetfile = "${postfix::virtual_regexp::postfix_virtual_regexp_snippets_dir}/${name}"
file { "$snippetfile":
- ensure => "$ensure",
mode => 600,
owner => root,
group => 0,