Skip to content

Commit

Permalink
adding support for interface_automatic_ports
Browse files Browse the repository at this point in the history
  • Loading branch information
anthonysomerset committed Apr 15, 2024
1 parent 42b00f2 commit 7d2dd58
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 0 deletions.
9 changes: 9 additions & 0 deletions REFERENCE.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ The following parameters are available in the `unbound` class:
* [`port`](#-unbound--port)
* [`interface`](#-unbound--interface)
* [`interface_automatic`](#-unbound--interface_automatic)
* [`interface_automatic_ports`](#-unbound--interface_automatic_ports)
* [`outgoing_interface`](#-unbound--outgoing_interface)
* [`outgoing_range`](#-unbound--outgoing_range)
* [`outgoing_port_permit`](#-unbound--outgoing_port_permit)
Expand Down Expand Up @@ -353,6 +354,14 @@ Data type: `Boolean`

Default value: `false`

##### <a name="-unbound--interface_automatic_ports_"></a>`interface_automatic_ports`

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



Default value: `undef`

##### <a name="-unbound--outgoing_interface"></a>`outgoing_interface`

Data type: `Array[String[1]]`
Expand Down
1 change: 1 addition & 0 deletions manifests/init.pp
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
Integer[0, 65535] $port = 53,
Array[String[1]] $interface = [],
Boolean $interface_automatic = false,
Optional[String[1]] $interface_automatic_ports = undef,
Array[String[1]] $outgoing_interface = [], # version 1.5.10
Optional[Integer[1]] $outgoing_range = undef,
Unbound::Range $outgoing_port_permit = '32768-65535',
Expand Down
3 changes: 3 additions & 0 deletions templates/unbound.conf.erb
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,9 @@ server:
<%= print_config('port', @port) -%>
<%= print_config('interface', @interface) -%>
<%= print_config('interface-automatic', @interface_automatic) -%>
<% if @interface_automatic_ports -%>
<%= print_config('interface-automatic-ports', @interface_automatic_ports) -%>
<% end -%>
<%= print_config('outgoing-interface', @outgoing_interface) -%>
<%= print_config('outgoing-range', @outgoing_range) -%>
<%- if @outgoing_port_permit_first -%>
Expand Down

0 comments on commit 7d2dd58

Please sign in to comment.