Is it possible to differentiate a puppet agent
run from a puppet apply
run?
Is there a convenient environment variable or fact to check within my manifests?
Asked
Active
Viewed 232 times
2
-
Not convenient would be deriving this from $default_file_terminus value as they are different, but this is implicit dependency. – ITL Aug 13 '15 at 14:30
1 Answers
2
The $trusted['authenticated']
fact might work for you. The value will be:
local
forpuppet apply
remote
(Or possiblyfalse
) forpuppet agent
This is one of the trusted facts in puppet, check out the official documentation.