On Apr 20, 3:11 am, Felix Frank <felix.fr...@alumni.tu-berlin.de>
wrote:

> > "require => Package['port-sudo']" wouldn't work, and I don't see an
> > 'onlyif' or similar parameter under "package"
>
> Yes it does.
>
> What semantics are you gunning for? "Only install X on boxes where Y is
> getting installed" is a tough call.
> You could use custom facts to find out about your Y.
> Otherwise, the require is a nice choice, because your catalog should
> fail where Y is not in the catalog.

I'll give require a try.  I wasn't sure whether Package[] referenced a
definition within the class (which wouldn't work for me since I used
exec), or whether it queried the system's packaging system to check
whether it was installed.

Also, sorry for the multiple posts.  Google kept throwing an error,
and I retried posting a few time before seeing that some of them went
through.

--
Darek

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To post to this group, send email to puppet-users@googlegroups.com.
To unsubscribe from this group, send email to 
puppet-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.

Reply via email to