This module manages the DHCP server daemon found in the base installation of OpenBSD.
- Multiple subnet support
- Host reservations
- Only works on OpenBSD
Define the server and the zones it will be responsible for.
class { 'dhcp':
dnsdomain => [
'dc1.example.net',
],
nameservers => ['10.0.1.20'],
}
Define the subnet attributes
dhcp::pool{ 'ops.dc1.example.net':
network => '10.0.1.0',
netmask => '255.255.255.0',
range => '10.0.1.100 10.0.1.200',
routers => '10.0.1.1',
}
Create host reservations.
dhcp::host {
'server1': mac => "00:50:56:00:00:01", ip => "10.0.1.51";
'server2': mac => "00:50:56:00:00:02", ip => "10.0.1.52";
'server3': mac => "00:50:56:00:00:03", ip => "10.0.1.53";
}
Please help me make this module awesome! Send pull requests and file issues.