Cookbooks
bind
documentation
Bind Service

Back to resource list

bind_service

Installs the pre-requisites for the bind service to run.

Actions

ActionDescription
:createInstalls packages and creates appropriate configuration directories. It does not attempt to create a working configuration.
:startEnsures that the name server will be started at the end of the Chef run and will be started automatically on boot.
:restartImmediately restart the name server

Properties

NameTypeDefaultDescription
chroot_dirStringsee default_property_forDefine the chrooted base directory. Affects sysconfdir and vardir and is platform specific.
chroottrue, falsefalseBoolean declaration to setup a chrooted nameserver installation
dynamicdirStringsee default_property_forDirectory location for storing zones used with dynamic updates
package_nameString, Arraysee default_property_forThe package, or array of packages, needed to install the nameserver. Usually includes bind and associated utility packages.
run_groupStringsee default_property_forThe groups that the name server will run as
run_userStringsee default_property_forThe user that the name server will run as
service_nameStringsee default_property_forThe name of the service installed by the system packages
sysconfdirStringsee default_property_forThe system configuration directory where the named config will be located
vardirStringsee default_property_forThe location for zone files and other data

Examples

bind_service 'default' do
  action [:create, :start]
end