aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Hollinger III <david.hollinger@moduletux.com>2019-08-31 13:35:04 -0500
committerGitHub <noreply@github.com>2019-08-31 13:35:04 -0500
commitd6c0df12aa2b09bff70f88d51e7ef62045266095 (patch)
treea4cb977334da6b7bef1e5e0f3f832c9d5c76af70
parent0236a6f6bc737f882f950cdd507763c9f4098e0f (diff)
parentd932153d5d19a0f20f0eec695f6964cfe509b291 (diff)
downloadpuppet-ferm-d6c0df12aa2b09bff70f88d51e7ef62045266095.tar.gz
puppet-ferm-d6c0df12aa2b09bff70f88d51e7ef62045266095.tar.bz2
Merge pull request #52 from bastelfreak/docs
allow all supported iptables protocolls & enhance puppet-strings documentation Unverified
-rw-r--r--REFERENCE.md30
-rw-r--r--types/chains.pp1
-rw-r--r--types/policies.pp1
-rw-r--r--types/protocols.pp3
4 files changed, 32 insertions, 3 deletions
diff --git a/REFERENCE.md b/REFERENCE.md
index bd608cb..daf137d 100644
--- a/REFERENCE.md
+++ b/REFERENCE.md
@@ -20,6 +20,12 @@ _Private Classes_
* [`ferm::chain`](#fermchain): defined resource which creates all rules for one chain
* [`ferm::rule`](#fermrule): defined resource which creates a single rule in a specific chain
+**Data types**
+
+* [`Ferm::Chains`](#fermchains): a type that allows the default iptables chains
+* [`Ferm::Policies`](#fermpolicies): a list of allowed default policies for a chain
+* [`Ferm::Protocols`](#fermprotocols): a list of allowed protocolls to match
+
## Classes
### ferm
@@ -236,7 +242,7 @@ Default value: `undef`
##### `saddr`
-Data type: `Optional[String[1]]`
+Data type: `Optional[Variant[Array, String[1]]]`
The source address we want to match
@@ -244,7 +250,7 @@ Default value: `undef`
##### `daddr`
-Data type: `Optional[String[1]]`
+Data type: `Optional[Variant[Array, String[1]]]`
The destination address we want to match
@@ -274,3 +280,23 @@ Set the rule to present or absent
Default value: 'present'
+## Data types
+
+### Ferm::Chains
+
+a type that allows the default iptables chains
+
+Alias of `Enum['INPUT', 'FORWARD', 'OUTPUT']`
+
+### Ferm::Policies
+
+a list of allowed default policies for a chain
+
+Alias of `Enum['ACCEPT', 'DROP', 'REJECT']`
+
+### Ferm::Protocols
+
+a list of allowed protocolls to match
+
+Alias of `Enum['icmp', 'tcp', 'udp', 'udplite', 'icmpv6', 'esp', 'ah', 'sctp', 'mh', 'all']`
+
diff --git a/types/chains.pp b/types/chains.pp
index 3ddf0f8..e916359 100644
--- a/types/chains.pp
+++ b/types/chains.pp
@@ -1 +1,2 @@
+# @summary a type that allows the default iptables chains
type Ferm::Chains = Enum['INPUT', 'FORWARD', 'OUTPUT']
diff --git a/types/policies.pp b/types/policies.pp
index ffc8a6e..03be6ce 100644
--- a/types/policies.pp
+++ b/types/policies.pp
@@ -1 +1,2 @@
+# @summary a list of allowed default policies for a chain
type Ferm::Policies = Enum['ACCEPT','DROP', 'REJECT']
diff --git a/types/protocols.pp b/types/protocols.pp
index 2ab2cf4..ee3ac2b 100644
--- a/types/protocols.pp
+++ b/types/protocols.pp
@@ -1 +1,2 @@
-type Ferm::Protocols = Enum['icmp', 'tcp', 'udp', 'all']
+# @summary a list of allowed protocolls to match
+type Ferm::Protocols = Enum['icmp', 'tcp', 'udp', 'udplite', 'icmpv6', 'esp', 'ah', 'sctp', 'mh', 'all']