Issue #2389 has been updated by Brice Figureau.

Brice Figureau wrote:
> Hi,
> 
> I rebased this patchset on top of luke:tickets/master/1943.
> Please merge it in testing (right after 1943 and before your future patch).
> 
> The patch is in my github repository, branch: tickets/testing/2389.
> The patch doesn't introduce any new test failure (and doesn't fix any 
> previous ones).

The first commit of the patch is: c68d84b1c375831fb16648fb07b9d38f8bdaf96b
The branch is to be added on top of luke:tickets/master/1943
If it doesn't merge cleanly let me know, I'll rebase elsewhere or again.


----------------------------------------
Feature #2389: Support for hashes in puppet language
http://projects.reductivelabs.com/issues/2389

Author: Peter Meier
Status: Ready for Testing
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.

Reply via email to