Ensure local-zone is always under server.
Ensure local-zone is always under server.

If you create resources with stub before local-zone, the local-zone
entries end up in the stubs, causing a validation failure.

To solve this, force the stubs to come later in the configuration file.

Example code to trigger the bug (with the hashes non-empty):
create_resources(unbound::stub, hiera_hash('unbound::zones::stub', {}), {})
create_resources(unbound::local_zone, hiera_hash('unbound::zones::local', {}), {})

Signed-off-by: Robin H. Johnson <aa3b04a87f185a8b919ce94fe21b810489ffb8d4@gentoo.org>

mmickan/puppet-unbound,xaque208/puppet-unbound,mmickan/puppet-unbound,twc-openstack/puppet-unbound,xaque208/puppet-unbound,xaque208/puppet-unbound,icann-dns/puppet-unbound,twc-openstack/puppet-unbound,icann-dns/puppet-unbound,rswarts/puppet-unbound,rswarts/puppet-unbound,icann-dns/puppet-unbound