Re: [Puppet Users] How to indicate multiple dependency?

2013-05-09 Thread Nikola Petrov
Are those packages defined in different files? If they are in the same file you can just do the following package {['pgk1', 'pkg2']: ensure = 'installed', } - file { 'file1': ... } If they are in different files you maybe will be able to hack something with the spaceship operator but it

[Puppet Users] How to indicate multiple dependency?

2013-05-08 Thread Bret Wortman
What's the right/best way to indicate that a particular entry in a manifest (a file in this case) depends on successful installation of over 30 packages, all indicated in the same manifest? I could do this, but it seems cumbersome: package { 'pkg1': } Package['pkg1'] - File['file1'] package {

Re: [Puppet Users] How to indicate multiple dependency?

2013-05-08 Thread Peter Bukowinski
On May 8, 2013, at 6:52 AM, Bret Wortman bret.wort...@damascusgrp.com wrote: What's the right/best way to indicate that a particular entry in a manifest (a file in this case) depends on successful installation of over 30 packages, all indicated in the same manifest? I could do this, but it

Re: [Puppet Users] How to indicate multiple dependency?

2013-05-08 Thread Bret Wortman
I wasn't sure how the before would work in that instance -- and my experimental facilities are limited. But if the before really won't trigger until all the members of the array complete, then that sounds like the perfect solution for me. Thanks! On Wednesday, May 8, 2013 9:57:19 AM UTC-4,

Re: [Puppet Users] How to indicate multiple dependency?

2013-05-08 Thread Peter Bukowinski
The 'before' metaparameter is an inverse version of the 'require' metaparameter. Where the 'require' parameter forces the parent resource to sync *after* the indicated resource, the 'before' parameter acts as a pause button on the indicated resource (in this case, file2), preventing it from