From 0c63cd6145b4ca1c1c62032ae44aa6bb5e658abe Mon Sep 17 00:00:00 2001 From: Tim Meusel Date: Tue, 27 Jul 2021 21:06:13 +0200 Subject: [PATCH] dont make `$destination_addresses` as optional, remove useless validation --- manifests/interface.pp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/manifests/interface.pp b/manifests/interface.pp index b31eec9..f4d63d6 100644 --- a/manifests/interface.pp +++ b/manifests/interface.pp @@ -33,7 +33,7 @@ define wireguard::interface ( String[1] $public_key, String[1] $endpoint, - Optional[Array[Stdlib::IP::Address]] $destination_addresses = [$facts['networking']['ip'], $facts['networking']['ip6'],], + Array[Stdlib::IP::Address] $destination_addresses = [$facts['networking']['ip'], $facts['networking']['ip6'],], String[1] $interface = $title, Integer[1024, 65000] $dport = Integer(regsubst($title, '^\D+(\d+)$', '\1')), Optional[String[1]] $input_interface = undef, @@ -44,8 +44,6 @@ require wireguard if $manage_firewall { - assert_type(Array[Stdlib::IP::Address], $source_addresses) - assert_type(Array[Stdlib::IP::Address], $destination_addresses) ferm::rule { "allow_wg_${interface}": action => 'ACCEPT', chain => 'INPUT',