diff options
author | Thore Bödecker <me@foxxx0.de> | 2019-09-11 16:01:32 +0200 |
---|---|---|
committer | Thore Bödecker <me@foxxx0.de> | 2019-09-11 16:01:32 +0200 |
commit | 3d868fb81532d717fd625638781e4663a834260c (patch) | |
tree | 397bcfd1f98200da896b8d032cbd4b9bcb1a3749 /types/protocols.pp | |
parent | 6d96e030be0db4a916dd6a9bd0b25570d359e634 (diff) | |
download | puppet-ferm-3d868fb81532d717fd625638781e4663a834260c.tar.gz puppet-ferm-3d868fb81532d717fd625638781e4663a834260c.tar.bz2 |
allow using an array for $proto
This enables defining ferm::rule with multiple protocols at once,
because using 'all' for $proto does not allow using $dport/$sport.
Diffstat (limited to 'types/protocols.pp')
-rw-r--r-- | types/protocols.pp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/types/protocols.pp b/types/protocols.pp index ee3ac2b..cdd76b2 100644 --- a/types/protocols.pp +++ b/types/protocols.pp @@ -1,2 +1,5 @@ # @summary a list of allowed protocolls to match -type Ferm::Protocols = Enum['icmp', 'tcp', 'udp', 'udplite', 'icmpv6', 'esp', 'ah', 'sctp', 'mh', 'all'] +type Ferm::Protocols = Variant[ + Enum['icmp', 'tcp', 'udp', 'udplite', 'icmpv6', 'esp', 'ah', 'sctp', 'mh', 'all'], + Array[Enum['icmp', 'tcp', 'udp', 'udplite', 'icmpv6', 'esp', 'ah', 'sctp', 'mh', 'all']], +] |