Philip Brown
unread,Nov 19, 2012, 6:45:55 PM11/19/12Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to puppet...@googlegroups.com
I've poked around the puppet docs, and google, and so far I'm stuck on an apparent inconsistency of usage, when it comes to using arrays, and variables, interchangably.
I should mention this is with puppet 3.0.1
If you use literal arrays, both of the following are possible and accepted by puppet:
package{ ['pkg1', 'pkg2']:
blahblah
}
service{ foo:
require => Package['pkg1', 'pkg2'],
}
However. If I define a variable,
$pkglist=['pkg1','pkg2']
Then, while I CAN do
package{ $pkglist:
blahblah
}
It seems I cannot do
service{ foo:
require => Package $pkglist ,
}
This makes me sad :(
Can someone tell if if there is some language shenanigans I must do, to get puppet to accept the last bit?