In a manifest, you can test the built-in variable $clientnoop to know if puppet agent runs in noop mode or not. See https://docs.puppetlabs.com/puppet/latest/reference/lang_facts_and_builtin_vars.html#puppet-agent-facts
But inside a custom function, how can you know if noop is enabled or not ? It seems that you cannot access the built-in variable $clientnoop inside function. Any clues ? Regards, Fred -- 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/325d8144-5836-4581-8cd2-3f5e3c44ce95%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
