|
13 | 13 | # source => 'puppet:///modules/profile/example.com.zone', |
14 | 14 | # } |
15 | 15 | # |
| 16 | +# @example Restrict zone transfers for a primary zone |
| 17 | +# |
| 18 | +# bind::zone::primary { 'example.com': |
| 19 | +# source => 'puppet:///modules/profile/example.com.zone', |
| 20 | +# allow_transfer => ['192.0.2.42'], |
| 21 | +# } |
| 22 | +# |
16 | 23 | # @example Use DNSSEC signing for a primary zone using a DNSSEC policy |
17 | 24 | # |
18 | 25 | # bind::zone::primary { 'example.com': |
|
33 | 40 | # Secondary servers that should be notified in addition to the |
34 | 41 | # nameservers that are listed in the zone file. |
35 | 42 | # |
| 43 | +# @param allow_transfer |
| 44 | +# An array of ACL names or networks that are allowed to transfer zone |
| 45 | +# information for this zone. |
| 46 | +# |
36 | 47 | # @param update_policy |
37 | 48 | # Enable dynamic updates for the zone and define the update policy. This |
38 | 49 | # can either be the string `local` or an array of strings. Using the string |
|
124 | 135 | # |
125 | 136 | define bind::zone::primary ( |
126 | 137 | Array[String] $also_notify = [], |
| 138 | + Array[String] $allow_transfer = [], |
127 | 139 | Variant[Enum['local'],Array[String]] $update_policy = [], |
128 | 140 | Optional[Boolean] $dnssec_enable = undef, |
129 | 141 | Optional[Boolean] $dnssec_dnskey_kskonly = undef, |
|
257 | 269 | } |
258 | 270 |
|
259 | 271 | $params = { |
260 | | - 'zone' => $zone, |
261 | | - 'file' => $zonefile, |
262 | | - 'also_notify' => $also_notify, |
263 | | - 'notify' => $notify_secondaries, |
264 | | - 'statistics' => $zone_statistics, |
265 | | - 'update_policy' => $update_policy, |
266 | | - 'class' => $class, |
267 | | - 'comment' => $comment, |
268 | | - 'indent' => bool2str($bind::views_enable, ' ', ''), |
269 | | - 'zone_in_view' => ($view =~ NotUndef), |
270 | | - 'dnssec_params' => !empty(delete_undef_values($params_dnssec)), |
| 272 | + 'zone' => $zone, |
| 273 | + 'file' => $zonefile, |
| 274 | + 'also_notify' => $also_notify, |
| 275 | + 'allow_transfer' => $allow_transfer, |
| 276 | + 'notify' => $notify_secondaries, |
| 277 | + 'statistics' => $zone_statistics, |
| 278 | + 'update_policy' => $update_policy, |
| 279 | + 'class' => $class, |
| 280 | + 'comment' => $comment, |
| 281 | + 'indent' => bool2str($bind::views_enable, ' ', ''), |
| 282 | + 'zone_in_view' => ($view =~ NotUndef), |
| 283 | + 'dnssec_params' => !empty(delete_undef_values($params_dnssec)), |
271 | 284 | } |
272 | 285 |
|
273 | 286 | if $bind::views_enable { |
|
0 commit comments