Ask Your Question

Revision history [back]

There is an "in" operator in the Puppet DSL so you can check for set membership, if that helps: https://docs.puppetlabs.com/puppet/latest/reference/lang_expressions.html#in.

You might also want to code up a custom fact that performs these checks in Ruby code and then simply returns a true/false value that you use in your manifests.