Debian and RedHat allow setting startup options and other settings via a sysconfig/default file (/etc/default/bind9 under Debian and /etc/sysconfig/named under RedHat). FreeBSD/DragonFly and ArchLinux don't have a direct equivalent.
This change allows managing sysconfig/default settings under Debian and RedHat. It is especially useful for setting startup options like `-4` to disable IPv6 support in named, or setting the debug level with `-d`. The change adds a few specific `$dns::sysconfig_*` parameters to model the default behaviour under Debian and RedHat, as well as a `$dns::sysconfig_additional_settings` hash parameter that allows setting arbitrary key-value pairs in the sysconfig file.
For FreeBSD/DragonFly and ArchLinux these parameters are all set to undef and not used anywhere since they feature is no directly equivalent sysconfig setup.
This change also adds basic spec tests for Debian, including tests for the sysconfig support introduced here.
Add support for managing sysconfig settings
Debian and RedHat allow setting startup options and other settings via a
sysconfig/default file (/etc/default/bind9 under Debian and
/etc/sysconfig/named under RedHat). FreeBSD/DragonFly and ArchLinux
don't have a direct equivalent.
This change allows managing sysconfig/default settings under Debian and
RedHat. It is especially useful for setting startup options like `-4` to
disable IPv6 support in named, or setting the debug level with `-d`. The
change adds a few specific `$dns::sysconfig_*` parameters to model the
default behaviour under Debian and RedHat, as well as a
`$dns::sysconfig_additional_settings` hash parameter that allows setting
arbitrary key-value pairs in the sysconfig file.
For FreeBSD/DragonFly and ArchLinux these parameters are all set to
undef and not used anywhere since they feature is no directly equivalent
sysconfig setup.
This change also adds basic spec tests for Debian, including tests for
the sysconfig support introduced here.