On Thursday, October 22, 2015 at 3:00:55 AM UTC-5, Thomas Müller wrote:
>
> Hi
>
> I know it's possible to confine a fact by other facts like "confine 
> :operatingsystem => :Fedora". 
>
> But i have a fact which requires a binary from a rpm package which is only 
> installed by puppet. For the first puppet run tries to execute the not-yet 
> installed binary and fails.
>
> is it possible to use something like this to confine based on existing 
> files?
>
> confine File.exists?(/path/to/binary)
>
>
>

Why, yes, but the syntax is:

confine :exists => "/path/to/binary"

, as documented 
<https://docs.puppetlabs.com/guides/provider_development.html#suitability> 
among the provider development documentation.


John

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/0903066c-5759-43d6-8bfc-9140eb9d2a9e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to