Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Facts view: remote query #722

Open
nod0n opened this issue Jan 15, 2021 · 2 comments
Open

Facts view: remote query #722

nod0n opened this issue Jan 15, 2021 · 2 comments

Comments

@nod0n
Copy link

nod0n commented Jan 15, 2021

Load facts from a remote system

When working on local code, it would be nice to load facts from a remote system and have then in the facts view. The code in the end goes to git and from there with r10k to the Puppet Server. I would just be handy, to load the facts from a remote system, because my local facts are not the same (different types of *nix, windows)

@glennsarti
Copy link
Contributor

A couple of thoughts here.

Using a different set of facts than what's on the local computer is relatively easy. The hard part is retrieving the facts

One thing we've poked around with is querying a Puppet Enterprise server for the last known facts for computer XXX so we don't have to actually contact the remote computer

We could leverage Bolt to get the remote facts, assuming it's configured with the right inventory and authentication

A minor problem with fact loading is that you won't get custom facts loaded into facter as the modules won't be there for facter

Another option may be to load "canned" facts using facterdb files. So we're not contacting the remote system but surface facts from different systems

@logicminds
Copy link

Having done something similar in the puppet debugger you really should support all three methods. Local, remote, and facterdb. Remote should be a puppetdb query and facterdb needs to be a filter query.

Allow the user to select from a list of operating systems by providing a query input or setting.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants