From d0bb32607d1b4b1ea7dac408ec329caf24c48875 Mon Sep 17 00:00:00 2001 From: Christian Saller Date: Thu, 25 Jul 2024 16:03:08 +0200 Subject: [PATCH] add missing array type at parameter extra_networkd_sections --- REFERENCE.md | 2 +- manifests/interface.pp | 2 +- manifests/provider/systemd.pp | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/REFERENCE.md b/REFERENCE.md index 70716a0..cbca8c1 100644 --- a/REFERENCE.md +++ b/REFERENCE.md @@ -376,7 +376,7 @@ Default value: `[]` ##### `extra_networkd_sections` -Data type: `Hash[String, Hash[String, Any]]` +Data type: `Hash[String, Array[Hash[String, Any]]]` additional sections for the systemd-networkd configuration diff --git a/manifests/interface.pp b/manifests/interface.pp index 5994e4a..0e85133 100644 --- a/manifests/interface.pp +++ b/manifests/interface.pp @@ -130,7 +130,7 @@ Optional[Integer[1200, 9000]] $mtu = undef, Optional[String[1]] $public_key = undef, Array[Hash[String[1], Variant[String[1], Boolean]]] $routes = [], - Hash[String, Hash[String, Any]] $extra_networkd_sections = {}, + Hash[String, Array[Hash[String, Any]]] $extra_networkd_sections = {}, Optional[String[1]] $private_key = undef, Optional[String[1]] $preshared_key = undef, Enum['systemd', 'wgquick'] $provider = 'systemd', diff --git a/manifests/provider/systemd.pp b/manifests/provider/systemd.pp index 1a50d06..ad2f714 100644 --- a/manifests/provider/systemd.pp +++ b/manifests/provider/systemd.pp @@ -12,7 +12,7 @@ Optional[String[1]] $description = undef, Optional[Integer[1200, 9000]] $mtu = undef, Array[Hash[String[1], Variant[String[1], Boolean]]] $routes = [], - Hash[String, Hash[String, Any]] $extra_networkd_sections = {}, + Hash[String, Array[Hash[String, Any]]] $extra_networkd_sections = {}, Array[Stdlib::IP::Address] $default_allowlist = [], ) { assert_private()