Skip to content

Commit

Permalink
add missing array type at parameter extra_networkd_sections
Browse files Browse the repository at this point in the history
  • Loading branch information
sallchr committed Jul 25, 2024
1 parent 83b93c2 commit d0bb326
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion REFERENCE.md
Original file line number Diff line number Diff line change
Expand Up @@ -376,7 +376,7 @@ Default value: `[]`

##### <a name="-wireguard--interface--extra_networkd_sections"></a>`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

Expand Down
2 changes: 1 addition & 1 deletion manifests/interface.pp
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down
2 changes: 1 addition & 1 deletion manifests/provider/systemd.pp
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit d0bb326

Please sign in to comment.