aboutsummaryrefslogtreecommitdiff
path: root/manifests
diff options
context:
space:
mode:
authorCédric Jeanneret <cedric.jeanneret@camptocamp.com>2013-02-26 12:52:27 +0000
committerCédric Jeanneret <cedric.jeanneret@camptocamp.com>2013-02-26 12:52:27 +0000
commitaa3d9f040b590b492ef8cbb53a179db5bdeb1508 (patch)
tree45a69da1e4e903a17b35039b265d0597a983e27c /manifests
parent1fd636156477c5e38112642f73647704b2acffd2 (diff)
downloadpuppet-dhcp-aa3d9f040b590b492ef8cbb53a179db5bdeb1508.tar.gz
puppet-dhcp-aa3d9f040b590b492ef8cbb53a179db5bdeb1508.tar.bz2
updated hash format in order to get a better view
Diffstat (limited to 'manifests')
-rw-r--r--manifests/hosts.pp31
1 files changed, 16 insertions, 15 deletions
diff --git a/manifests/hosts.pp b/manifests/hosts.pp
index f0c7c37..fd99600 100644
--- a/manifests/hosts.pp
+++ b/manifests/hosts.pp
@@ -5,34 +5,35 @@
# Arguments
# $template: dhcp host template - default: 'dhcp/host.conf.erb'
# $subnet: targeted subnet
-# $data_hash: hash containing data - default form:
+# $hash_data: hash containing data - default form:
# {
# <host1> => {
# options => false,
# fixed_address => false,
-# eth0 => 'mac-address',
-# eth1 => 'mac-address',
-# …,
-# wlan0 => 'mac-address',
-# wlan1 => 'mac-address',
-# …,
+# interfaces => {
+# eth0 => 'mac-address',
+# eth1 => 'mac-address',
+# wlan0 => 'mac-address',
+# wlan1 => 'mac-address',
+# …,
+# }
# },
# <host2> => {
# options => false,
# fixed_address => false,
-# eth0 => 'mac-address',
-# eth1 => 'mac-address',
-# …,
-# wlan0 => 'mac-address',
-# wlan1 => 'mac-address',
-# …,
-# options => false,
+# interfaces => {
+# eth0 => 'mac-address',
+# eth1 => 'mac-address',
+# wlan0 => 'mac-address',
+# wlan1 => 'mac-address',
+# …,
+# }
# },
# …,
# }
#
define dhcp::hosts (
- $data_hash,
+ $hash_data,
$subnet,
$template = 'dhcp/host.conf.erb',
) {