On 20/12/16 11:25, [email protected] wrote:
> Hi there,
> I recently started using Foreman for managing Windows 7 endpoints and a
> few Linux clients. When I enter e.g. 
> puppet resource package
> on the command line of a client with a present puppet installation, I am
> able to obtain a list of all installed packages on that system,
> including the version number. How can I access this data within Foreman
> centrally? And how can I enable, that this information is in some kind
> "cached" on the server if a client is offline?

You could create a fact that's distributed via Puppet. Using Facter's
external facts support, this can be a script that's executed on each
Puppet run and then the value of the fact will be stored in Foreman. The
result won't be very easy to read, but it may suffice.

https://docs.puppet.com/facter/3.5/custom_facts.html#external-facts has
more information on creating external facts. If it's in the modulepath
then it will be downloaded automatically by the Puppet agents.

-- 
Dominic Cleal
[email protected]

-- 
You received this message because you are subscribed to the Google Groups 
"Foreman users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/foreman-users.
For more options, visit https://groups.google.com/d/optout.

Reply via email to