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

Stephen Price
Wed, 28 Aug 2013 21:43:03 -0000

Oh yes, I know that using Foreman as the ENC is the preferred method. I
just want to evaluate it for reporting/stats first before taking the
plunge.

I''ve got the script running with a cron job now, works like a charm.

On Wednesday, August 28, 2013 1:30:52 PM UTC-7, ohad
wrote:
>
>
>
>
> On Wed, Aug 28, 2013 at 9:13 PM, Stephen Price
<ste...@gmail.com<javascript:>
> > wrote:
>
>> Thanks! I''ll check it out. I think eventually I can see using
Foreman
>> more for stuff like ENC and provisioning, but I wanted to proceed
>> cautiously by just starting with reporting and fact pushing. For now,
the
>> example cron script works ok.
>>
>
> if you turn on enc functionality, the enc script would actually upload the
> facts prior to query enc data (as facts might affect the enc output).
>
> Ohad
>
>>
>>
>> On Wed, Aug 28, 2013 at 9:41 AM, Ellison Marks
<gty...@gmail.com<javascript:>
>> > wrote:
>>
>>> There''s a beta frontend for puppetdb floating around the
list called
>>> puppetboard. It handles reports, as well as a few other things.
It''s pretty
>>> sweet, all things considered.
>>>
https://groups.google.com/forum/#!searchin/puppet-users/puppetboard/puppet-users/PVbPY3z8uFI/5yFZgVIG5wEJ
>>>
>>>
>>> On Tuesday, August 27, 2013 10:45:55 PM UTC-7, Stephen Price wrote:
>>>
>>>>  Sorry, I meant I''m using Hiera as an ENC. I did see
that PuppetDB has
>>>> report storage, but without an easy way to use that data (short
of creating
>>>> my own interface utilizing queries to PuppetDB), it''s
not very useful yet.
>>>> I figured Foreman would be a decent drop-in for reports.
>>>>
>>>> I got a suggestion from someone else to take a look at creating
a
>>>> custom facts terminus and have the master sending facts
directly to both
>>>> Foreman and PuppetDB, but that means designing my own REST
interface. Kind
>>>> of daunting. Thanks for the tip though. I''ll poke
around foreman-users for
>>>> some ideas.
>>>>
>>>>
>>>> On Tue, Aug 27, 2013 at 9:03 PM, Ken Barber
<k...@puppetlabs.com>wrote:
>>>>
>>>>> > I''ve been using PuppetDB as an ENC for a
while,
>>>>>
>>>>> So PuppetDB is not an ENC, do you mean Foreman?
>>>>>
>>>>> > 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 PuppetDB has experimental report storage:
>>>>> http://docs.puppetlabs.com/**puppetdb/1.4/connect_puppet_**
>>>>>
master.html#edit-puppetconf<http://docs.puppetlabs.com/puppetdb/1.4/connect_puppet_master.html#edit-puppetconf>
>>>>>
>>>>> > 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?
>>>>>
>>>>> So this is possibly not the correct forum to ask? If you
don''t get an
>>>>> answer, you might want to ask on foreman-users:
>>>>>
https://groups.google.com/**forum/#!forum/foreman-users<https://groups.google.com/forum/#!forum/foreman-users>
>>>>>
>>>>> ken.
>>>>>
>>>>> --
>>>>> 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<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...@**googlegroups.com.
>>>>> To post to this group, send email to
puppet...@googlegroups.com.
>>>>>
>>>>> Visit this group at
http://groups.google.com/**group/puppet-users<http://groups.google.com/group/puppet-users>
>>>>> .
>>>>> For more options, visit
https://groups.google.com/**groups/opt_out<https://groups.google.com/groups/opt_out>
>>>>> .
>>>>>
>>>>
>>>>
>>>>
>>>> --
>>>> Stephen Price
>>>>
>>>  --
>>> 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...@googlegroups.com <javascript:>.
>>>
>>> To post to this group, send email to
puppet...@googlegroups.com<javascript:>
>>> .
>>> Visit this group at http://groups.google.com/group/puppet-users.
>>> For more options, visit https://groups.google.com/groups/opt_out.
>>>
>>
>>
>>
>> --
>> Stephen Price
>>
>> --
>> 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...@googlegroups.com <javascript:>.
>> To post to this group, send email to
puppet...@googlegroups.com<javascript:>
>> .
>> Visit this group at http://groups.google.com/group/puppet-users.
>> For more options, visit https://groups.google.com/groups/opt_out.