>> 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.
No, it does indeed only consider what you're managing with puppet. You
don't manage a package - puppet doesn't know about it.

If you want one resource to work only when a certain exec is also
present in the node's catalog, you need to require the Exec[] of course,
not some Package[] that doesn't exist as far as puppet is concerned.

But do heed Nigel's comment about the ports provider! If that solves
your problem, the above may not even matter to you after all.

Cheers,
Felix

-- 
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