Project

General

Profile

Download (578 Bytes) Statistics
| Branch: | Tag: | Revision:
2f1bbd2b Greg Sutcliffe
$ddnskeyname = 'dhcp_updater'

class { 'dhcp':
dnsdomain => [
'example.com',
'1.1.10.in-addr.arpa',
],
nameservers => ['10.1.1.10'],
interfaces => ['eth0'],
bc84f709 Ewoud Kohl van Wijngaarden
dnsupdatekey => "/etc/bind/keys.d/${::ddnskeyname}",
c045bf8c Ewoud Kohl van Wijngaarden
require => Bind::Key[$::ddnskeyname],
2f1bbd2b Greg Sutcliffe
pxeserver => '10.1.1.5',
pxefilename => 'pxelinux.0',
}

dhcp::pool{ 'example.com':
network => '10.1.1.0',
mask => '255.255.255.0',
range => '10.1.1.100 10.1.1.200',
gateway => '10.1.1.1',
}

dhcp::host {
'gateway':
c045bf8c Ewoud Kohl van Wijngaarden
mac => '00:11:22:33:44:55',
ip => '10.1.1.1',
2f1bbd2b Greg Sutcliffe
}