Re: [Puppet Users] The Foreman: Query facts from ENC PuppetDB?

Stephen Price
Tue, 27 Aug 2013 17:09:40 -0000

Script in question:
http://goo.gl/L2TukF

It''s a pretty simple script. It just reads facts from all .yaml files
in
/var/lib/puppet/yaml/facts/ and posts them to the Foreman. Would it be of
any benefit to instead run a cron job on the Foreman server to do a REST
call to the PuppetDB server to query these facts?


On Tue, Aug 27, 2013 at 9:57 AM, Stephen Price <steeef@gmail.com> wrote:

> I''ve been using PuppetDB as an ENC for a while, but I
haven''t really
> utilized it for stored configs or anything. I was mostly interested in
> replacing Dashboard''s reporting capabilities, but PuppetDB
doesn''t yet do
> anything (that I can see) with reports. So I''m currently looking
into
> setting up a separate Foreman server.
>
> I saw the script mentioned in the manual that''s meant to be run as
a cron
> job on the master, which should push facts to the Foreman, but is there a
> way to do the reverse, and have the Foreman query the Master or PuppetDB
> directly for facts?
>
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "Puppet Users" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/puppet-users/I0KzcD3wl0s/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> puppet-users+unsubscribe@googlegroups.com.
> To post to this group, send email to puppet-users@googlegroups.com.
> Visit this group at http://groups.google.com/group/puppet-users.
> For more options, visit https://groups.google.com/groups/opt_out.
>



--
Stephen Price