]> gitweb.fluxo.info Git - puppet-dhcp.git/commitdiff
updated hash format in order to get a better view
authorCédric Jeanneret <cedric.jeanneret@camptocamp.com>
Tue, 26 Feb 2013 12:52:27 +0000 (12:52 +0000)
committerCédric Jeanneret <cedric.jeanneret@camptocamp.com>
Tue, 26 Feb 2013 12:52:27 +0000 (12:52 +0000)
manifests/hosts.pp

index f0c7c3765da76e3863f6612d3d7722621e9c6e03..fd99600b1f54064ce861c12c4fd16e640bb0d3f1 100644 (file)
@@ -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',
 ) {