diff options
author | Cédric Jeanneret <cedric.jeanneret@camptocamp.com> | 2010-11-05 08:32:53 +0100 |
---|---|---|
committer | Cédric Jeanneret <cedric.jeanneret@camptocamp.com> | 2010-11-05 08:32:53 +0100 |
commit | 27a7dee0f65476c637755100bf18e0252b3534dc (patch) | |
tree | 208f20db2aa56591deb8325aeca6d802fe7536f4 /manifests/classes/dhcp-server.pp | |
parent | badb9fccf410426dcad5ffb460e2f8f102ac9490 (diff) | |
download | puppet-dhcp-27a7dee0f65476c637755100bf18e0252b3534dc.tar.gz puppet-dhcp-27a7dee0f65476c637755100bf18e0252b3534dc.tar.bz2 |
(module dhcp) Renamed files to reflect usage
Diffstat (limited to 'manifests/classes/dhcp-server.pp')
-rw-r--r-- | manifests/classes/dhcp-server.pp | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/manifests/classes/dhcp-server.pp b/manifests/classes/dhcp-server.pp new file mode 100644 index 0000000..9ae7b9f --- /dev/null +++ b/manifests/classes/dhcp-server.pp @@ -0,0 +1,43 @@ +/* + += Class: dhcp +Simple OS wrapper. Include this to install a dhcp server on your host. + +Requires: + module "common": git://github.com/camptocamp/puppet-common.git + +Required arguments: + *$dhcpd_domain_name*: domain-name option + *$dhcpd_dns_servers*: domain-name-servers option + +facultative argument: + *$dhcpd_ddns_update*: ddns-update-style option + *$dhcpd_ddns_authoritative*: set it if you want that your DHCP server is authoritative + +Example: +node "dhcp.toto.ltd" { + $dhcpd_domain_name = 'toto.ltd' + $dhcpd_dns_servers = '192.168.21.1' + include dhcp + + dhcp::subnet {"192.168.20.0": + ensure => present, + bcast => "192.168.20.255", + dns => "192.168.21.1, 10.26.22.1", + other_opt => ['filename "pxelinux.0";', 'next-server 192.168.10.1;'], + inc => true, + } + + dhcp::host {"titi-eth0": + ensure => present, + mac => "0e:18:fa:fe:d9:00", + subnet => "192.168.20.0", + fixed_address => "192.168.10.52", + } +} +*/ +class dhcp { + case $operatingsystem { + Debian: { include dhcp::debian } + } +} |