Closed disconn3ct closed 8 years ago
Tested with no local_options and with the example above. In general should probably use validate_hash but there weren't any other validators in init. (It is NBD to add those as well if you want.)
--- /etc/bind/named.conf 2016-09-23 11:20:37.965556276 -0400
+++ /tmp/puppet-file20160923-10621-qefouo 2016-09-23 11:21:20.727391671 -0400
@@ -12,4 +12,6 @@
listen-on-v6 { any; };
dnssec-enable no;
filter-aaaa-on-v4 yes;
+ test_opt potato;
+ other_opt fries;
};
I do not like this feature, precisely because some hapless user somewhere could add test_opt potato
and other_opt fries
to a production bind configuration, have a downed nameserver, and then since DNS is such a core service, have a hell of a time fixing it.
Please add the parameters you would like to use to the class.
Everything is a core service to someone, and bind has quite a few configuration options (many of which should be left defaulted in most cases, rather than explicitly set.) The common usage in other modules is to allow a hash (eg nginx *_cfg_append, which was used in the puppetlabs version even before it was passed around to a bunch of different maintainers.)
Fix for #102. Allows (optional) arbitrary local options hash.