|
7 | 7 | ### Classes |
8 | 8 |
|
9 | 9 | * [`unbound`](#unbound): Installs and configures Unbound, the caching DNS resolver from NLnet Labs |
| 10 | +* [`unbound::dnstap`](#unbound--dnstap) |
10 | 11 | * [`unbound::remote`](#unbound--remote): Configure remote control of the unbound daemon process |
11 | 12 |
|
12 | 13 | ### Defined types |
|
16 | 17 | * [`unbound::record`](#unbound--record): Create an unbound static DNS record override |
17 | 18 | * [`unbound::stub`](#unbound--stub): Create an unbound stub zone for caching upstream name resolvers |
18 | 19 |
|
| 20 | +### Functions |
| 21 | + |
| 22 | +* [`unbound::print_config`](#unbound--print_config): Print a configuration value if it is defined and the version is supported |
| 23 | + |
19 | 24 | ### Data types |
20 | 25 |
|
21 | 26 | * [`Unbound::Access_control`](#Unbound--Access_control): custom type for access control lists |
@@ -1916,6 +1921,195 @@ specifying reduces the number of puppet runs |
1916 | 1921 |
|
1917 | 1922 | Default value: `$facts['unbound_version']` |
1918 | 1923 |
|
| 1924 | +### <a name="unbound--dnstap"></a>`unbound::dnstap` |
| 1925 | + |
| 1926 | +The unbound::dnstap class. |
| 1927 | + |
| 1928 | +#### Parameters |
| 1929 | + |
| 1930 | +The following parameters are available in the `unbound::dnstap` class: |
| 1931 | + |
| 1932 | +* [`enable`](#-unbound--dnstap--enable) |
| 1933 | +* [`bidirectional`](#-unbound--dnstap--bidirectional) |
| 1934 | +* [`socket_path`](#-unbound--dnstap--socket_path) |
| 1935 | +* [`ip`](#-unbound--dnstap--ip) |
| 1936 | +* [`tls`](#-unbound--dnstap--tls) |
| 1937 | +* [`tls_host`](#-unbound--dnstap--tls_host) |
| 1938 | +* [`tls_cert_bundle`](#-unbound--dnstap--tls_cert_bundle) |
| 1939 | +* [`tls_cert_key_file`](#-unbound--dnstap--tls_cert_key_file) |
| 1940 | +* [`tls_cert_cert_file`](#-unbound--dnstap--tls_cert_cert_file) |
| 1941 | +* [`send_identity`](#-unbound--dnstap--send_identity) |
| 1942 | +* [`send_version`](#-unbound--dnstap--send_version) |
| 1943 | +* [`identity`](#-unbound--dnstap--identity) |
| 1944 | +* [`version`](#-unbound--dnstap--version) |
| 1945 | +* [`sample_rate`](#-unbound--dnstap--sample_rate) |
| 1946 | +* [`log_resolver_query_messages`](#-unbound--dnstap--log_resolver_query_messages) |
| 1947 | +* [`log_resolver_response_messages`](#-unbound--dnstap--log_resolver_response_messages) |
| 1948 | +* [`log_client_query_messages`](#-unbound--dnstap--log_client_query_messages) |
| 1949 | +* [`log_client_response_messages`](#-unbound--dnstap--log_client_response_messages) |
| 1950 | +* [`log_forwarder_query_messages`](#-unbound--dnstap--log_forwarder_query_messages) |
| 1951 | +* [`log_forwarder_response_messages`](#-unbound--dnstap--log_forwarder_response_messages) |
| 1952 | + |
| 1953 | +##### <a name="-unbound--dnstap--enable"></a>`enable` |
| 1954 | + |
| 1955 | +Data type: `Boolean` |
| 1956 | + |
| 1957 | +Whether to enable dnstap. |
| 1958 | + |
| 1959 | +Default value: `true` |
| 1960 | + |
| 1961 | +##### <a name="-unbound--dnstap--bidirectional"></a>`bidirectional` |
| 1962 | + |
| 1963 | +Data type: `Boolean` |
| 1964 | + |
| 1965 | +Whether to enable bidirectional dnstap. |
| 1966 | + |
| 1967 | +Default value: `true` |
| 1968 | + |
| 1969 | +##### <a name="-unbound--dnstap--socket_path"></a>`socket_path` |
| 1970 | + |
| 1971 | +Data type: `Optional[Stdlib::Absolutepath]` |
| 1972 | + |
| 1973 | +The path to the dnstap socket. |
| 1974 | + |
| 1975 | +Default value: `undef` |
| 1976 | + |
| 1977 | +##### <a name="-unbound--dnstap--ip"></a>`ip` |
| 1978 | + |
| 1979 | +Data type: `Optional[Unbound::Address]` |
| 1980 | + |
| 1981 | +The IP address for dnstap. |
| 1982 | + |
| 1983 | +Default value: `undef` |
| 1984 | + |
| 1985 | +##### <a name="-unbound--dnstap--tls"></a>`tls` |
| 1986 | + |
| 1987 | +Data type: `Boolean` |
| 1988 | + |
| 1989 | +Whether to enable TLS for dnstap. |
| 1990 | + |
| 1991 | +Default value: `true` |
| 1992 | + |
| 1993 | +##### <a name="-unbound--dnstap--tls_host"></a>`tls_host` |
| 1994 | + |
| 1995 | +Data type: `Optional[Stdlib::Host]` |
| 1996 | + |
| 1997 | +The TLS host for dnstap. |
| 1998 | + |
| 1999 | +Default value: `undef` |
| 2000 | + |
| 2001 | +##### <a name="-unbound--dnstap--tls_cert_bundle"></a>`tls_cert_bundle` |
| 2002 | + |
| 2003 | +Data type: `Optional[Stdlib::Absolutepath]` |
| 2004 | + |
| 2005 | +The path to the TLS certificate bundle. |
| 2006 | + |
| 2007 | +Default value: `undef` |
| 2008 | + |
| 2009 | +##### <a name="-unbound--dnstap--tls_cert_key_file"></a>`tls_cert_key_file` |
| 2010 | + |
| 2011 | +Data type: `Optional[Stdlib::Absolutepath]` |
| 2012 | + |
| 2013 | +The path to the TLS certificate key file. |
| 2014 | + |
| 2015 | +Default value: `undef` |
| 2016 | + |
| 2017 | +##### <a name="-unbound--dnstap--tls_cert_cert_file"></a>`tls_cert_cert_file` |
| 2018 | + |
| 2019 | +Data type: `Optional[Stdlib::Absolutepath]` |
| 2020 | + |
| 2021 | +The path to the TLS certificate file. |
| 2022 | + |
| 2023 | +Default value: `undef` |
| 2024 | + |
| 2025 | +##### <a name="-unbound--dnstap--send_identity"></a>`send_identity` |
| 2026 | + |
| 2027 | +Data type: `Boolean` |
| 2028 | + |
| 2029 | +Whether to send the identity in dnstap messages. |
| 2030 | + |
| 2031 | +Default value: `false` |
| 2032 | + |
| 2033 | +##### <a name="-unbound--dnstap--send_version"></a>`send_version` |
| 2034 | + |
| 2035 | +Data type: `Boolean` |
| 2036 | + |
| 2037 | +Whether to send the version in dnstap messages. |
| 2038 | + |
| 2039 | +Default value: `false` |
| 2040 | + |
| 2041 | +##### <a name="-unbound--dnstap--identity"></a>`identity` |
| 2042 | + |
| 2043 | +Data type: `Optional[String[1]]` |
| 2044 | + |
| 2045 | +The identity to send in dnstap messages. |
| 2046 | + |
| 2047 | +Default value: `undef` |
| 2048 | + |
| 2049 | +##### <a name="-unbound--dnstap--version"></a>`version` |
| 2050 | + |
| 2051 | +Data type: `Optional[String[1]]` |
| 2052 | + |
| 2053 | +The version to send in dnstap messages. |
| 2054 | + |
| 2055 | +Default value: `undef` |
| 2056 | + |
| 2057 | +##### <a name="-unbound--dnstap--sample_rate"></a>`sample_rate` |
| 2058 | + |
| 2059 | +Data type: `Integer[0,1000]` |
| 2060 | + |
| 2061 | +The sample rate for dnstap messages. |
| 2062 | + |
| 2063 | +Default value: `0` |
| 2064 | + |
| 2065 | +##### <a name="-unbound--dnstap--log_resolver_query_messages"></a>`log_resolver_query_messages` |
| 2066 | + |
| 2067 | +Data type: `Boolean` |
| 2068 | + |
| 2069 | +Whether to log resolver query messages. |
| 2070 | + |
| 2071 | +Default value: `false` |
| 2072 | + |
| 2073 | +##### <a name="-unbound--dnstap--log_resolver_response_messages"></a>`log_resolver_response_messages` |
| 2074 | + |
| 2075 | +Data type: `Boolean` |
| 2076 | + |
| 2077 | +Whether to log resolver response messages. |
| 2078 | + |
| 2079 | +Default value: `false` |
| 2080 | + |
| 2081 | +##### <a name="-unbound--dnstap--log_client_query_messages"></a>`log_client_query_messages` |
| 2082 | + |
| 2083 | +Data type: `Boolean` |
| 2084 | + |
| 2085 | +Whether to log client query messages. |
| 2086 | + |
| 2087 | +Default value: `false` |
| 2088 | + |
| 2089 | +##### <a name="-unbound--dnstap--log_client_response_messages"></a>`log_client_response_messages` |
| 2090 | + |
| 2091 | +Data type: `Boolean` |
| 2092 | + |
| 2093 | +Whether to log client response messages. |
| 2094 | + |
| 2095 | +Default value: `false` |
| 2096 | + |
| 2097 | +##### <a name="-unbound--dnstap--log_forwarder_query_messages"></a>`log_forwarder_query_messages` |
| 2098 | + |
| 2099 | +Data type: `Boolean` |
| 2100 | + |
| 2101 | +Whether to log forwarder query messages. |
| 2102 | + |
| 2103 | +Default value: `false` |
| 2104 | + |
| 2105 | +##### <a name="-unbound--dnstap--log_forwarder_response_messages"></a>`log_forwarder_response_messages` |
| 2106 | + |
| 2107 | +Data type: `Boolean` |
| 2108 | + |
| 2109 | +Whether to log forwarder response messages. |
| 2110 | + |
| 2111 | +Default value: `false` |
| 2112 | + |
1919 | 2113 | ### <a name="unbound--remote"></a>`unbound::remote` |
1920 | 2114 |
|
1921 | 2115 | Configure remote control of the unbound daemon process |
@@ -2341,6 +2535,38 @@ Name of the unbound config file |
2341 | 2535 |
|
2342 | 2536 | Default value: `undef` |
2343 | 2537 |
|
| 2538 | +## Functions |
| 2539 | + |
| 2540 | +### <a name="unbound--print_config"></a>`unbound::print_config` |
| 2541 | + |
| 2542 | +Type: Puppet Language |
| 2543 | + |
| 2544 | +Print a configuration value if it is defined and the version is supported |
| 2545 | + |
| 2546 | +#### `unbound::print_config(String[1] $name, Optional[Variant[Boolean, Integer, String, Array[String, 1]]] $value = undef, Optional[String[1]] $version = undef)` |
| 2547 | + |
| 2548 | +The unbound::print_config function. |
| 2549 | + |
| 2550 | +Returns: `String` the config item as a string or an empty string if the version is not supported |
| 2551 | + |
| 2552 | +##### `name` |
| 2553 | + |
| 2554 | +Data type: `String[1]` |
| 2555 | + |
| 2556 | +the config item name |
| 2557 | + |
| 2558 | +##### `value` |
| 2559 | + |
| 2560 | +Data type: `Optional[Variant[Boolean, Integer, String, Array[String, 1]]]` |
| 2561 | + |
| 2562 | +the config item value |
| 2563 | + |
| 2564 | +##### `version` |
| 2565 | + |
| 2566 | +Data type: `Optional[String[1]]` |
| 2567 | + |
| 2568 | +the version when the config item was introduced |
| 2569 | + |
2344 | 2570 | ## Data types |
2345 | 2571 |
|
2346 | 2572 | ### <a name="Unbound--Access_control"></a>`Unbound::Access_control` |
|
0 commit comments