From aa3d9f040b590b492ef8cbb53a179db5bdeb1508 Mon Sep 17 00:00:00 2001 From: Cédric Jeanneret Date: Tue, 26 Feb 2013 12:52:27 +0000 Subject: updated hash format in order to get a better view --- manifests/hosts.pp | 31 ++++++++++++++++--------------- 1 file changed, 16 insertions(+), 15 deletions(-) (limited to 'manifests') 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: # { # => { # 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', +# …, +# } # }, # => { # 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', ) { -- cgit v1.2.3