On 22/10/2015 13:38, jcbollinger wrote:


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.


Facter, not providers, John. Those are, sadly, different beasts.


Cheers, David

--
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/5628E1FB.1010004%40dasz.at.
For more options, visit https://groups.google.com/d/optout.

Reply via email to