1818
1919### Defined types
2020
21- * [ ` bind::key ` ] ( #bindkey )
21+ * [ ` bind::key ` ] ( #bindkey ) : Create TSIG key for zone updates in the configuration file for BIND
2222* [ ` bind::zone ` ] ( #bindzone ) : A DNS zone
2323
2424### Resource types
@@ -77,6 +77,7 @@ The following parameters are available in the `bind` class:
7777* [ ` doc_packages_ensure ` ] ( #doc_packages_ensure )
7878* [ ` utils_packages_ensure ` ] ( #utils_packages_ensure )
7979* [ ` logging ` ] ( #logging )
80+ * [ ` keys ` ] ( #keys )
8081* [ ` options ` ] ( #options )
8182* [ ` package_manage ` ] ( #package_manage )
8283* [ ` service_manage ` ] ( #service_manage )
@@ -102,7 +103,6 @@ The following parameters are available in the `bind` class:
102103* [ ` zone_default_rname ` ] ( #zone_default_rname )
103104* [ ` zone_default_serial ` ] ( #zone_default_serial )
104105* [ ` zone_default_ttl ` ] ( #zone_default_ttl )
105- * [ ` keys ` ] ( #keys )
106106
107107##### <a name =" authoritative " ></a >` authoritative `
108108
@@ -209,6 +209,14 @@ statement](https://bind9.readthedocs.io/en/latest/reference.html#logging-stateme
209209
210210Default value: `` undef ``
211211
212+ ##### <a name =" keys " ></a >` keys `
213+
214+ Data type: ` Hash `
215+
216+ Hash for creating Bind::Key resources.
217+
218+ Default value: ` {} `
219+
212220##### <a name =" options " ></a >` options `
213221
214222Data type: ` Optional[Bind::Options] `
@@ -434,19 +442,25 @@ in the `$zones` parameter. Also, individual resource records can override this v
434442
435443Default value: ` '2d' `
436444
437- ##### < a name = " keys " ></ a > ` keys `
445+ ## Defined types
438446
439- Data type: ` Hash `
447+ ### < a name = " bindkey " ></ a > ` bind::key `
440448
441- Hash for creating Bind::Key resources.
449+ Create TSIG key for zone updates in the configuration file for BIND
442450
443- Default value: ` {} `
451+ * ** See also**
452+ * https://bind9.readthedocs.io/en/latest/advanced.html#tsig
444453
445- ## Defined types
454+ #### Examples
446455
447- ### < a name = " bindkey " ></ a > ` bind:: key`
456+ ##### Add a TSIG key to the nameserver
448457
449- The bind::key class.
458+ ``` puppet
459+ bind::key { 'tsig-client':
460+ algorithm => 'hmac-sha512',
461+ secret => 'secret-key-data',
462+ }
463+ ```
450464
451465#### Parameters
452466
@@ -459,13 +473,15 @@ The following parameters are available in the `bind::key` defined type:
459473
460474Data type: ` Enum['hmac-sha256', 'hmac-sha384', 'hmac-sha512'] `
461475
462-
476+ Defines the algorithm which was used to generate the key data.
477+ For security reasons just allow algorithms hmac-sha256 and above:
478+ https://www.rfc-editor.org/rfc/rfc8945.html#name-algorithms-and-identifiers
463479
464480##### <a name =" secret " ></a >` secret `
465481
466482Data type: ` String[44] `
467483
468-
484+ Provide the secret data of the TSIG key, generated using tsig-keygen.
469485
470486### <a name =" bindzone " ></a >` bind::zone `
471487
0 commit comments