Re: [Puppet Users] Dashboard & LDAP ENC''s

Craig White
Wed, 29 Jun 2011 15:40:11 -0000

On Jun 29, 2011, at 8:23 AM, Rob McBroom wrote:

> On Jun 22, 2011, at 2:37 PM, Craig White wrote:
>
>> I''ve restarted both puppetmaster and apache (Dashboard is
running on passenger) and still, I don''t see the above system in
''Nodes'' though I haven''t run or even installed puppet
on that system. Shouldn''t it show up in Dashboard as a node that has
never reported?
>>
>> I''m trying to figure out how to get Dashboard to import the
ENC ''nodes'' from LDAP.
>
> Someone can correct me if I’m wrong, but I believe the Dashboard is just
another possible destination for reports. It has no awareness of the
Puppetmaster or it’s configuration (like `node_terminus`). The Puppetmaster, on
the other hand, does know about the Dashboard (via the `reports` setting) and
can send reports there, but not until after there’s something to report (which
would be a Puppet run on that node).
>
> So I think what you’re seeing is expected behavior. The node should show up
after its first Puppet run.
>
> If you want it to be more automatic, you may have to write something that
queries LDAP and modifies the MySQL database. If you use Python, I’ve got a
library that simplifies getting servers out of LDAP. Let me know if you’re
interested.
----
I am still uncertain whether we will have enough servers to actually bother with
maintaining hosts in LDAP just for puppet.

I demonstrated OpenLDAP for my boss and we are discussing rfc2307 implementation
at which point I would have to maintain hosts in LDAP and it might make sense to
tie them all in to puppet. I think you confirmed that I am not seeing nodes from
LDAP in the Dashboard not because of anything I am doing wrong so I''ll
leave it for now.

Thanks

Craig