napisał:
Is it possible to force puppet agent to send facts to master (puppetdb)
while it is locked (puppet agent --disable) or run in --noop mode?
The reason to have such feature is pretty simple: having up-to-date node
specs with puppet agent in locked state.
Thanks!
you can disable it with prerun_command - then it will fail late (after
retrieving catalog from master). ie.while it is locked (puppet agent --disable) or run in --noop mode?
The reason to have such feature is pretty simple: having up-to-date node
specs with puppet agent in locked state.
Thanks!
you can disable it with prerun_command - then it will fail late (after
[training ~]# FACTER_fooism=true puppet agent -t --prerun_command=/bin/false
Info: Retrieving pluginfacts
Info: Retrieving plugin
Info: Loading facts
Info: Caching catalog for training
Error: Could not run command from prerun_command: Execution of '/bin/false'
returned 1:
[training ~]# grep fooism /var/opt/lib/pe-puppet/yaml/facts/training.yaml
fooism: "true"
if you write your own prerun_command script you can also include a message
(just write to stdout) which will be included into puppet report.
--
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 puppet-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/78818575-a7b9-46e5-8346-6b7049c26435%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.