aboutsummaryrefslogtreecommitdiff
path: root/manifests/rule.pp
diff options
context:
space:
mode:
authorTim Meusel <tim@bastelfreak.de>2019-09-12 10:31:25 +0200
committerGitHub <noreply@github.com>2019-09-12 10:31:25 +0200
commit1a417a652142302fdd62534a0d5220c8b7b2304d (patch)
tree397bcfd1f98200da896b8d032cbd4b9bcb1a3749 /manifests/rule.pp
parent6d96e030be0db4a916dd6a9bd0b25570d359e634 (diff)
parent3d868fb81532d717fd625638781e4663a834260c (diff)
downloadpuppet-ferm-1a417a652142302fdd62534a0d5220c8b7b2304d.tar.gz
puppet-ferm-1a417a652142302fdd62534a0d5220c8b7b2304d.tar.bz2
Merge pull request #67 from foxxx0/allow-proto-array
allow using an array for $proto
Diffstat (limited to 'manifests/rule.pp')
-rw-r--r--manifests/rule.pp6
1 files changed, 4 insertions, 2 deletions
diff --git a/manifests/rule.pp b/manifests/rule.pp
index 4f2c985..a973601 100644
--- a/manifests/rule.pp
+++ b/manifests/rule.pp
@@ -73,8 +73,10 @@ define ferm::rule (
Ferm::Chain <| chain == $action_temp and table == $table |> -> Ferm::Rule[$name]
}
-
- $proto_real = "proto ${proto}"
+ $proto_real = $proto ? {
+ Array => "proto (${join($proto, ' ')})",
+ String => "proto ${proto}",
+ }
$dport_real = $dport ? {
undef => '',