Re: [Puppet Users] Searching for Nodes

Brian Malinconico
Thu, 24 Jan 2013 18:13:01 -0000

Hello Bill,

Thank you for the feedback. We are actually using haproxy, and will
undoubtedly use the stock book, it was just the example.

I guess I am confused as to the pattern. I have looked over the nagios
examples many times but I am still unsure. T

he final example would be how to distribute a database IP without
hard-coding it.

My understanding of the exported resources would be that the database needs
to export the configuration file, and the application servers would need to
import that file. This means that the database box needs to have
application level knowledge to create the config file needed.

What am I not understanding? Is the puppet pattern to set the $database_ip
variable?

Brian

On Thursday, January 24, 2013 12:54:49 PM UTC-5, Bill Fraser
wrote:
>
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Hi Brian,
>
> The use case you are describing lends itself toward making use of
> stored configuration and exported resources.
>
> http://docs.puppetlabs.com/guides/exported_resources.html
>
> http://projects.puppetlabs.com/projects/1/wiki/Using_Stored_Configuration
>
> Additionally, if you are using haproxy as your load balancing
> solution, there is already a module available that uses these features.
>
> https://github.com/puppetlabs/puppetlabs-haproxy
>
> Hope that helps.
>
> Regards,
> Bill
>
> On 13-01-24 10:55 AM, Brian Malinconico wrote:
> > Hello All,
> >
> > I''m reviewing switching to puppet from chef and am trying to
> > identify how to port the various features.
> >
> > I have hit a stumbling block searching for nodes. In Chef i could
> > search for a node by role, but I am lost as how to do this with
> > puppet and classes.
> >
> > Example: I want my load-balancing node  to look for all application
> > server nodes and grab their ip address (and hostname ideally).
> >
> > I have setup PuppetDB, and have looked at
> > http://forge.puppetlabs.com/dalen/puppetdbquery but i am having
> > trouble crafting my queries.
> >
> > Is there a way to view all available fields in PuppetDB? I am
> > having trouble getting the curl commands to work.
> >
> > Brian
> >
>
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.11 (GNU/Linux)
> Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/
>
> iEYEARECAAYFAlEBdWkACgkQ5xgg9J6hpUsklgCgjXsyhln4BB0dDjXhxjXCi+NS
> KsYAn1eHbYeNW5eW14gIrSuTWBr/zYjX
> =cRgN
> -----END PGP SIGNATURE-----
>

--
You received this message because you are subscribed to the Google Groups
"Puppet Users" group.
To view this discussion on the web visit