Cookbooks
dhcp
documentation
Dhcp Group

dhcp_group

Back to resource list

Create a DHCPD group configuration. (https://kb.isc.org/docs/isc-dhcp-44-manual-pages-dhcpdconf#reference-declarations (opens in a new tab) - The group statement)

Introduced: v7.0.0

Actions

  • :create
  • :delete

Properties

NameTypeDefaultDescriptionAllowed Values
commentStringnilComment to add to the configuration file
ip_versionSymbol:ipv4Select DHCP or DHCPv6 server to configure:ipv4, :ipv6
conf_dirString/etc/dhcp/dhcpd(6).d/groups.dDirectory to create configuration file in
cookbookString/etc/dhcp/dhcpd(6).d/groups.dCookbook to source configuration file template from
templateString/etc/dhcp/dhcpd(6).d/groups.dTemplate to use to generate the configuration file
ownerStringPlatform dependantOwner of the generated configuration file
groupStringPlatform dependantGroup of the generated configuration file
modeString'0640'Filemode of the generated configuration file
parametersArray, HashnilDHCPD parameters for the group
optionsArray, HashnilDHCPD options for the group
evalsArraynilDHCPD conditional statements for the group (see dhcp-eval(5))
hostsHashnilHosts configuration to include within the group

Examples

dhcp_group 'IPPgones' do
  options(
    'tftp-server-name' => '192.0.2.10'
  )
end