FAQ
W dniu piątek, 10 lipca 2015 00:37:42 UTC+2 użytkownik Sergii Alieksanov
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.

[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.

Search Discussions

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
grouppuppet-users @
categoriespuppet
postedJul 13, '15 at 10:10a
activeJul 13, '15 at 10:10a
posts1
users1
websitepuppetlabs.com

1 user in discussion

Asq: 1 post

People

Translate

site design / logo © 2022 Grokbase