]> gitweb.fluxo.info Git - puppet-ferm.git/commitdiff
enhance puppet-strings documentation
authorTim Meusel <tim@bastelfreak.de>
Sat, 31 Aug 2019 17:20:44 +0000 (19:20 +0200)
committerTim Meusel <tim@bastelfreak.de>
Sat, 31 Aug 2019 17:20:44 +0000 (19:20 +0200)
REFERENCE.md
types/chains.pp
types/policies.pp

index bd608cbbf801c178d41d7864354074f03a41ef19..daf137dd2f6f6d4a5298c59294a76b8dbffc0d31 100644 (file)
@@ -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']`
+
index 3ddf0f82b04ba037866f3eee98b21e8b397b751f..e91635908e815aa8ede6280d3668c5213ea1b99b 100644 (file)
@@ -1 +1,2 @@
+# @summary a type that allows the default iptables chains
 type Ferm::Chains = Enum['INPUT', 'FORWARD', 'OUTPUT']
index ffc8a6e09a21f8dd91784c573d236c527c1a5c17..03be6ce3efcc0c25db6884402376df3ab66476f2 100644 (file)
@@ -1 +1,2 @@
+# @summary a list of allowed default policies for a chain
 type Ferm::Policies = Enum['ACCEPT','DROP', 'REJECT']