diff options
author | Raphaël Pinson <raphael.pinson@camptocamp.com> | 2013-04-12 14:11:44 +0200 |
---|---|---|
committer | Raphaël Pinson <raphael.pinson@camptocamp.com> | 2013-04-12 14:11:44 +0200 |
commit | 928dbaa62bcc37092ddec36b1f715365576eae6d (patch) | |
tree | ceb4ea7948269f0e2d7abbde24f5291de7a19d26 /manifests/hosts.pp | |
parent | b1c6314a83146a88f2d703ec99b6896bcd11c927 (diff) | |
download | puppet-dhcp-928dbaa62bcc37092ddec36b1f715365576eae6d.tar.gz puppet-dhcp-928dbaa62bcc37092ddec36b1f715365576eae6d.tar.bz2 |
doc
Diffstat (limited to 'manifests/hosts.pp')
-rw-r--r-- | manifests/hosts.pp | 38 |
1 files changed, 31 insertions, 7 deletions
diff --git a/manifests/hosts.pp b/manifests/hosts.pp index 9e2b284..1767a90 100644 --- a/manifests/hosts.pp +++ b/manifests/hosts.pp @@ -2,13 +2,13 @@ # # Creates a dhcp configuration for given hosts # -# Arguments -# $template: dhcp host template - default: 'dhcp/host.conf.erb' -# $global_options: an array of global options for the whole bunch of hosts. -# you may override it per host, setting the host "options" -# directly in the hash. -# $subnet: targeted subnet -# $hash_data: hash containing data - default form: +# Parameters: +# ['template'] - DHCP host template - default: 'dhcp/host.conf.erb' +# ['global_options'] - An array of global options for the whole bunch of +# hosts. You may override it per host, setting the +# host "options" directly in the hash. +# ['subnet'] - Targeted subnet +# ['hash_data'] - Hash containing data - default form: # { # <host1> => { # options => ['opt1', 'opt2'], @@ -33,6 +33,30 @@ # …, # } # +# Sample usage: +# ::dhcp::hosts { 'workstations': +# subnet => '192.168.1.0', +# 'hash_data' => { +# 'host1' => { +# 'interfaces' => { +# 'eth0' => '00:11:22:33:44:55', +# 'wlan0' => '00:aa:bb:44:55:ff', +# }, +# }, +# 'host2' => { +# 'interfaces' => { +# 'eth1' => '00:11:af:33:44:55', +# }, +# 'fixed_address' => 'foo.example.com', +# 'options' => ['opt1'], +# }, +# }, +# } +# +# Requires: +# - puppetlabs/stdlib +# - ripienaar/concat +# define dhcp::hosts ( $hash_data, $subnet, |