From: Cédric Jeanneret Date: Tue, 26 Feb 2013 12:52:27 +0000 (+0000) Subject: updated hash format in order to get a better view X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=aa3d9f040b590b492ef8cbb53a179db5bdeb1508;p=puppet-dhcp.git updated hash format in order to get a better view --- 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', ) {