Ask Your Question
0

Get Remote Catalog and Facts

asked 2018-01-26 11:50:47 -0600

annihil8ted gravatar image

Can the 'puppet catalog' command be used to grab remote catalogs from other nodes and view them? I was under the impression is does but can't seem to get it to output anything.

For example, I have puppet master on nodea and nodeb. From nodea, I tried puppet catalog find nodeb but it doesn't yield the catalog from nodeb.

Along the same line, is there a build in command for getting remote remote facts?

Both can be done manually by digging through puppet master server's cache directory but I was looking for a cleaner more natural and builtin method.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2018-02-02 22:46:41 -0600

joshc gravatar image

updated 2018-02-02 22:48:03 -0600

For security reasons, puppetserver will only allow clients to download their own catalog (the client needs to present a certificate whose subject matches the name of the catalog the client is requesting). You can relax the puppetserver's authorization rules to allow a specific trusted node to download some/all catalogs. On that trusted node you can then execute: puppet catalog find <some_other_host> --terminus rest. For more information about how to configure puppetserver, see https://puppet.com/docs/puppetserver/...

The other option is to download catalogs and facts from puppetdb, e.g. https://docs.puppet.com/puppetdb/2.3/...

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2018-01-26 11:50:47 -0600

Seen: 106 times

Last updated: Feb 02