]> gitweb.fluxo.info Git - puppet-ferm.git/commitdiff
enhance type validation; require stdlib 4.25.0
authorTim Meusel <tim@bastelfreak.de>
Wed, 6 Mar 2019 18:34:07 +0000 (19:34 +0100)
committerTim Meusel <tim@bastelfreak.de>
Wed, 6 Mar 2019 18:37:57 +0000 (19:37 +0100)
This isn't a breaking change. Now puppet just stops accepting values
that the underlying software (ferm) doesn't accept.

manifests/rule.pp
metadata.json

index 6f448f928a39e4d7b0d0a968adda9f1917b4406f..c87ef7f6637ca052779ac7c630db68ce4804699d 100644 (file)
@@ -14,10 +14,10 @@ define ferm::rule (
   Ferm::Policies $policy,
   Ferm::Protocols $proto,
   String $comment = $name,
-  Optional[Variant[Integer,String]] $dport = undef,
-  Optional[Variant[Integer,String]] $sport = undef,
-  Optional[String] $saddr = undef,
-  Optional[String] $daddr = undef,
+  Optional[Variant[Stdlib::Port,String[1]]] $dport = undef,
+  Optional[Variant[Stdlib::Port,String[1]]] $sport = undef,
+  Optional[String[1]] $saddr = undef,
+  Optional[String[1]] $daddr = undef,
   Optional[String[1]] $proto_options = undef,
   Enum['absent','present'] $ensure = 'present',
 ){
index 78436f1eddeb673e4fd9e24a9ba83d832e15d564..563cc8a2076b64cdd169db00b3e969a0415164de 100644 (file)
@@ -10,7 +10,7 @@
   "dependencies": [
     {
       "name": "puppetlabs/stdlib",
-      "version_requirement": ">= 4.13.1 < 6.0.0"
+      "version_requirement": ">= 4.25.0 < 6.0.0"
     },
     {
       "name": "puppetlabs/concat",