Skip to content

Latest commit

 

History

History
45 lines (33 loc) · 1.17 KB

README.rdoc

File metadata and controls

45 lines (33 loc) · 1.17 KB

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[:version] = FALSE default[:interfaces] = [ ‘eth0’ ] default[:next_server] = “10.0.198.11” default[:routers] = “10.0.198.1” default[:netmask] = “255.255.254.0” default[:subnet] = ‘10.0.198.0’ default[:range] = [ ‘10.0.199.201’, ‘10.0.199.250’ ] default[:default_leaser_time] = “600” default[:max_lease_time] = “7200” default[:filename] = “/pxelinux.0” default[:nameservers] = [ ‘10.0.198.11’ ] default[: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]"

)