Hi,

Thanks, I will look into tags, it could be solution indeed. I also thought 
about moving those packages into a separate class (eg. packages.pp), was 
just wondering what my options are if I leave them in install.pp.

Gergo Erdosi


On Tuesday, March 12, 2013 11:57:41 AM UTC+1, R.I. Pienaar wrote:
>
>
>
> ----- Original Message ----- 
> > From: "Matthew Burgess" <[email protected] <javascript:>> 
> > To: [email protected] <javascript:> 
> > 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] <javascript:>> 
> 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