cookbook 'dhcpd', '= 0.1.0'
dhcpd (3) Versions 0.1.0 Follow3
Installs/Configures dhcpd
cookbook 'dhcpd', '= 0.1.0', :supermarket
knife supermarket install dhcpd
knife supermarket download dhcpd
= DESCRIPTION:
A simple install of dhcpd server on ubuntu
= REQUIREMENTS:
Tested on Ubuntu 10.04
= ATTRIBUTES:
The defaults I use here are based on a guide I am writting so you will likely want to override for your env
default[:dhcpd][:version] = FALSE
default[:dhcpd][:interfaces] = [ 'eth0' ]
default[:dhcpd][:next_server] = "10.0.198.11"
default[:dhcpd][:routers] = "10.0.198.1"
default[:dhcpd][:netmask] = "255.255.254.0"
default[:dhcpd][:subnet] = '10.0.198.0'
default[:dhcpd][:range] = [ '10.0.199.201', '10.0.199.250' ]
default[:dhcpd][:default_leaser_time] = "600"
default[:dhcpd][:max_lease_time] = "7200"
default[:dhcpd][:filename] = "/pxelinux.0"
default[:dhcpd][:nameservers] = [ '10.0.198.11' ]
default[:dhcpd][:domain] = [ 'internal.mydomain.net' ]
= USAGE:
create the following role, or apply the attributes one of your existing roles on the server you want to be your dhcpd server
name "dhcpserver"
description "a simple dhcpd server"
override_attributes(
"dhcpd" => {
"interfaces" => [ 'eth1' ],
"tftp_server" => "10.0.198.11",
"gateway" => "10.0.198.1",
"netmask" => "255.255.254.0"
}
)
run_list(
"recipe[dhcpd]"
)
Dependent cookbooks
This cookbook has no specified dependencies.
Contingent cookbooks
There are no cookbooks that are contingent upon this one.