Adoptable Cookbooks List

Looking for a cookbook to adopt? You can now see a list of cookbooks available for adoption!
List of Adoptable Cookbooks

Supermarket Belongs to the Community

Supermarket belongs to the community. While Chef has the responsibility to keep it running and be stewards of its functionality, what it does and how it works is driven by the community. The chef/supermarket repository will continue to be where development of the Supermarket application takes place. Come be part of shaping the direction of Supermarket by opening issues and pull requests or by joining us on the Chef Mailing List.

Select Badges

Select Supported Platforms

Select Status


unbound (12) Versions 1.0.0

Manages unbound DNS resolver

cookbook 'unbound', '= 1.0.0', :supermarket
cookbook 'unbound', '= 1.0.0'
knife supermarket install unbound
knife supermarket download unbound
Quality 83%

Unbound Cookbook

Build Status Cookbook Version

Installs and manages the unbound DNS server.


A platform with unbound available as a native package. The following platforms have unbound packaged, but note that the filesystem locations are not consistent and at this time only Linux + FHS is supported.

  • Ubuntu/Debian
  • Red Hat/CentOS/Fedora (requires EPEL)
  • FreeBSD



Install unbound from package.


- unbound.conf
- forward-zone.conf
- local-zone.conf
- stub-zone.conf

For example usage see test/fixtures/cookbooks/test/recipes/configure.rb


The main configuration file for unbound. Many settings in the template are controlled via properties on the unbound_configure resource. The file is located in the location specified in the dir property.


Set up local network resolver configuration with local-zone.conf.


Edit the stub-zone.erb template to create a stub zone configuration.


Edit the forward-zone.erb template to create a forward zone configuration.



Installs and configures unbound using defaults.

This example recipe will load the local zone data from a data bag if present, otherwise it will attempt to use node['dns']['domain'] attribute. The various templates can be edited as required by the local user.

If this does not meet your needs use the unbound_configure resource directly.

chroot (TODO)

The intention of this recipe will be to setup the chroot environment if the chroot setting is enabled. However it is not yet complete.

remote_control (TODO)

Sets up remote control certificate attributes using the unbound configuration directory. Also creates the config file for remote-control settings and creates the certificates with unbound-control-setup.


License and Author

Copyright 2011, Joshua Timberman (
Copyright 2017, Dan Webb (

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
See the License for the specific language governing permissions and
limitations under the License.

Dependent cookbooks

This cookbook has no specified dependencies.

Contingent cookbooks

There are no cookbooks that are contingent upon this one.

unbound Cookbook CHANGELOG

This file is used to list changes made in each version of the unbound cookbook.


  • Add new custom resources unbound_install & unbound_configure


  • Adding support and kitchen testing for forward_zone generation
  • Updating to use Sous Chefs guidelines

Collaborator Number Metric

1.0.0 passed this metric

Contributing File Metric

1.0.0 passed this metric

Foodcritic Metric

1.0.0 failed this metric

FC108: Resource should not define a property named 'name': unbound/resources/configure.rb:1
FC108: Resource should not define a property named 'name': unbound/resources/install.rb:1
FC117: Do not use kind_of in custom resource properties: unbound/resources/rr.rb:19
FC117: Do not use kind_of in custom resource properties: unbound/resources/rr.rb:20
FC117: Do not use kind_of in custom resource properties: unbound/resources/rr.rb:21
FC117: Do not use kind_of in custom resource properties: unbound/resources/rr.rb:22
FC117: Do not use kind_of in custom resource properties: unbound/resources/rr.rb:23
FC118: Resource property setting name_attribute vs. name_property: unbound/resources/rr.rb:19
Run with Foodcritic Version 14.0.0 with tags metadata,correctness ~FC031 ~FC045 and failure tags any

No Binaries Metric

1.0.0 passed this metric

Testing File Metric

1.0.0 passed this metric

Version Tag Metric

1.0.0 passed this metric