-----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 post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.