----- Original Message -----
> From: "Matthew Burgess" <[email protected]>
> To: [email protected]
> Sent: Tuesday, March 12, 2013 10:52:05 AM
> Subject: Re: [Puppet Users] Shorten require list
> 
> On Tue, Mar 12, 2013 at 10:45 AM,  <[email protected]> wrote:
> > Hi,
> >
> > I have an Exec which requires a lot of packages (15-20):
> >
> > Exec { 'name':
> >   ...
> >   require => [ Package['first'], Package['second'], Package['third'], ... ]
> > }
> >
> > Is there a way to shorten this list and make it easier to read?
> 
> 15-20 packages for one exec statement?  That seems excessive.  What
> does that exec statement look like, at the moment, the only way I can
> imagine an exec statement requiring that number of packages is by it
> being a pipeline of 15 commands, each of which comes from a separate
> package.

if the packages are in a class, just require Class["foo"].

If the packages are tagged by some shared name 'foo':

Package<| tag == "foo" |> -> Exec["name"]

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/puppet-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to