chef-lctp/site-cookbooks/dhcp
Jörg Thalheim 5aa26b4850 add documentation 2014-01-27 11:38:48 +01:00
..
attributes get network working 2014-01-27 11:13:56 +01:00
files/default/test seperate node specific data from role 2014-01-21 23:11:25 +01:00
recipes seperate node specific data from role 2014-01-21 23:11:25 +01:00
templates/default get network working 2014-01-27 11:13:56 +01:00
README.md add documentation 2014-01-27 11:38:48 +01:00
metadata.rb First commit 2014-01-19 15:34:01 +01:00

README.md

Description

Setup isc-dhcp-server and assign nodes static ip addresses

Attributes

node.dhcp.domain.names - advertised search domains, default is nil node.dhcp.domain.servers - advertised domain name servers, default is nil node.dhcp.ntp_servers - advertised network time server, default is [] node.dhcp.hosts - hash of hosts with static ip addresses (see usage), default is {} node.dhcp.interface - interfaces to listen; an empty array means all available interfaces, default is [] node.dhcp.subnet.prefix - network prefix for the advertised subnet, default is "192.168.2.0" node.dhcp.subnet.netmask - netmask for the advertised subnet, default is "255.255.255.0" node.dhcp.subnet.gateway - ip for the default route, default is "192.168.2.1"

Usage

example to set a static ip address

node.default["dhcp"]["hosts"] =[{
  name: "node0",
  mac: "5c:a1:ab:1e:00:01",
  ip: "172.28.128.101"
}]