phred
2010-Sep-07 07:06 UTC
[Puppet Users] API: Get a list of servers that include a certain module/class
Hi there Is there a possibility to get all servers via API that e.g. have "import production" whereas production is a module/class. I want to use that host list for doing "push deployments" - something that needs to be live immediately. Greets Philipp -- 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+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
Joe McDonagh
2010-Sep-07 21:08 UTC
Re: [Puppet Users] API: Get a list of servers that include a certain module/class
On 09/07/2010 03:06 AM, phred wrote:> Hi there > > Is there a possibility to get all servers via API that e.g. have > "import production" whereas production is a module/class. > I want to use that host list for doing "push deployments" - something > that needs to be live immediately. > > Greets > Philipp > >I use Ruby to get stuff like this from the stored config DB. I''m sure with 2.6 you can do some funky cool stuff with the REST API though... -- Joe McDonagh AIM: YoosingYoonickz IRC: joe-mac on freenode "When the going gets weird, the weird turn pro." -- 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+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
Daniel Pittman
2010-Sep-07 21:48 UTC
Re: [Puppet Users] API: Get a list of servers that include a certain module/class
phred <philipp.keller@gmail.com> writes:> Is there a possibility to get all servers via API that e.g. have "import > production" whereas production is a module/class. I want to use that host > list for doing "push deployments" - something that needs to be live > immediately.While this is available through stored config and the like, the solution we settled on in-house was to use the Marionette Collective, which integrates very nicely with Puppet. It is written by R.I. Pienaar, who is quite active on these lists and extremely helpful, and which provides many of these capabilities. Regards, Daniel -- ✣ Daniel Pittman ✉ daniel@rimspace.net ☎ +61 401 155 707 ♽ made with 100 percent post-consumer electrons -- 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+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
phred
2010-Sep-10 10:14 UTC
[Puppet Users] Re: API: Get a list of servers that include a certain module/class
I got a private answer from R.I. Pienaar on that question: he writes: your only options are: - use the yaml files in /var/lib/puppet put there by the master - enable exported resources and query the db - use something like foreman to manage your puppet infrastrcture, it provides such a interface in both cases you will probably need to build the query interface yourself. Greets Philipp On Sep 7, 9:06 am, phred <philipp.kel...@gmail.com> wrote:> Hi there > > Is there a possibility to get all servers via API that e.g. have > "import production" whereas production is a module/class. > I want to use that host list for doing "push deployments" - something > that needs to be live immediately. > > Greets > Philipp-- 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+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
Ohad Levy
2010-Sep-10 16:59 UTC
Re: [Puppet Users] Re: API: Get a list of servers that include a certain module/class
Not sure if it helps, but foreman does have a query interface - http://theforeman.org/wiki/foreman/Query_Interface <http://theforeman.org/wiki/foreman/Query_Interface>Ohad On Fri, Sep 10, 2010 at 1:14 PM, phred <philipp.keller@gmail.com> wrote:> I got a private answer from R.I. Pienaar on that question: > > he writes: > > your only options are: > > - use the yaml files in /var/lib/puppet put there by the master > - enable exported resources and query the db > - use something like foreman to manage your puppet infrastrcture, it > provides such a interface > > in both cases you will probably need to build the query interface > yourself. > > Greets > Philipp > > On Sep 7, 9:06 am, phred <philipp.kel...@gmail.com> wrote: > > Hi there > > > > Is there a possibility to get all servers via API that e.g. have > > "import production" whereas production is a module/class. > > I want to use that host list for doing "push deployments" - something > > that needs to be live immediately. > > > > Greets > > Philipp > > -- > 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+unsubscribe@googlegroups.com<puppet-users%2Bunsubscribe@googlegroups.com> > . > For more options, visit this group at > http://groups.google.com/group/puppet-users?hl=en. > >-- 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+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.