Issue #2389 has been updated by Markus Roberts.
164f1ce85bad49c7e197deeb452828c94539e06e Allow adding single key to hashes fd427a51bc2bd97656767acc7f6b48160f8e60c4 Raise an error when appending not a hash to a hash 75c32f910ea124a938a7035b3352c11a11b57d0c Fix #2389 - Enhance Puppet DSL with Hashes ---------------------------------------- Feature #2389: Support for hashes in puppet language http://projects.reductivelabs.com/issues/2389 Author: Peter Meier Status: Closed Priority: Normal Assigned to: Markus Roberts Category: language Target version: Rowlf Affected version: 0.25.0 Keywords: Branch: brice:tickets/testing/2389 The puppet language should support hashes, so it's possible to pass hashes to resources. For example: $interface1['ifname'] = 'eth0' $interface1['ip'] = '192.168.1.1' $interface2['ifname'] = 'eth1' $interface2['ip'] = '192.168.2.1' cobbler_system { foobar: ... interfaces => [ $interface1, $interface2 ] } it should also be possible to create hashes very easily: $interface1 = { ifname => 'eth0', ip => '192.168.1.1 } the proposed syntax should be seen as an example and can be tuned... -- You have received this notification because you have either subscribed to it, or are involved in it. To change your notification preferences, please click here: http://reductivelabs.com/redmine/my/account -- You received this message because you are subscribed to the Google Groups "Puppet Bugs" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/puppet-bugs?hl=en.
