Skip to content

Commit

Permalink
Merge pull request #9 from bastelfreak/interface
Browse files Browse the repository at this point in the history
wireguard:interface: default `input_interface` to `networking.primary` fact
  • Loading branch information
bastelfreak authored Jul 27, 2021
2 parents d0b4338 + e92e409 commit 1495626
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions REFERENCE.md
Original file line number Diff line number Diff line change
Expand Up @@ -111,11 +111,11 @@ Default value: `$title`

##### <a name="input_interface"></a>`input_interface`

Data type: `Optional[String[1]]`
Data type: `String[1]`

ethernet interface where the wireguard packages will enter the system, used for firewall rules

Default value: ``undef``
Default value: `$facts['networking']['primary']`

##### <a name="manage_firewall"></a>`manage_firewall`

Expand Down
2 changes: 1 addition & 1 deletion manifests/interface.pp
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
Optional[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,
String[1] $input_interface = $facts['networking']['primary'],
Boolean $manage_firewall = true,
Array[Stdlib::IP::Address] $source_addresses = [],
Array[Hash[String,Variant[Stdlib::IP::Address::V4::CIDR,Stdlib::IP::Address::V6::CIDR]]] $addresses = [],
Expand Down

0 comments on commit 1495626

Please sign in to comment.