Hmmm, either I'm doing something wrong or virtual resources are incompatible
with hashes.
When I do this:
$users = [{ username => "bill", uid => "12345" },
{ username => "ted", uid => "12346" }]
define usertest ($alias = $name[username]) {
user {$name[username]:
ensure => present,
uid => $name[uid]
}
}
@usertest { $users: }
realize Usertest[bill]
I get this:
warning: alias is a metaparam; this value will inherit to all contained
resources
Failed to realize virtual resources Usertest[bill] on node
Which seems unfortunate. Hash support is a really cool idea but I keep
tripping over parts of Puppet that don't handle it well.
--
You received this message because you are subscribed to the Google Groups
"Puppet Users" 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-users?hl=en.