sateesh
2012-Feb-01 05:01 UTC
[Puppet Users] Search which the agent on which a specified module is been installed
Hi, Can we get the list of IPs from server where the specified module is installed. There is a search functionality in the Chef to do this. Is there any way in puppet? Thanks in advance, Sateesh B. -- 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.
sateesh
2012-Feb-01 05:01 UTC
[Puppet Users] Search which the agent on which a specified module is been installed
Hi, Can we get the list of IPs from server where the specified module is installed. There is a search functionality in the Chef to do this. Is there any way in puppet? Thanks in advance, Sateesh B. -- 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.
Gary Larizza
2012-Feb-02 00:55 UTC
Re: [Puppet Users] Search which the agent on which a specified module is been installed
Sateesh, You can use MCollective to get this bit of information if you do something like an mco find and limit it based on the class that''s been applied to the machine with the -C argument. That should return a list of nodes who have that class applied to it. If you had a function in Puppet that returned this information, you could iterate upon it. -Gary On Wed, Feb 1, 2012 at 12:01 AM, sateesh <bbalasateesh@gmail.com> wrote:> Hi, > > Can we get the list of IPs from server where the specified module is > installed. There is a search functionality in the Chef to do this. Is > there any way in puppet? > > Thanks in advance, > Sateesh B. > > -- > 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. > >-- Gary Larizza Professional Services Engineer Puppet Labs -- 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.
Nigel Kersten
2012-Feb-02 01:06 UTC
Re: [Puppet Users] Search which the agent on which a specified module is been installed
If you''re happy with just knowing which machines will be told to install that class/module, this information is available in your existing node definitions and/or external node classifier too. Note this is different from knowing which machines have actually had that class/module applied, as some machines may not have contacted the master to retrieve configuration yet. On Wed, Feb 1, 2012 at 4:55 PM, Gary Larizza <gary@puppetlabs.com> wrote:> Sateesh, > > You can use MCollective to get this bit of information if you do something > like an mco find and limit it based on the class that''s been applied to the > machine with the -C argument. That should return a list of nodes who have > that class applied to it. If you had a function in Puppet that returned > this information, you could iterate upon it. > > -Gary > > > On Wed, Feb 1, 2012 at 12:01 AM, sateesh <bbalasateesh@gmail.com> wrote: > >> Hi, >> >> Can we get the list of IPs from server where the specified module is >> installed. There is a search functionality in the Chef to do this. Is >> there any way in puppet? >> >> Thanks in advance, >> Sateesh B. >> >> -- >> 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. >> >> > > > -- > > Gary Larizza > Professional Services Engineer > Puppet Labs > > -- > 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. >-- Nigel Kersten Product Manager, Puppet Labs -- 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
2012-Feb-02 06:54 UTC
Re: [Puppet Users] Search which the agent on which a specified module is been installed
On Wed, Feb 1, 2012 at 7:01 AM, sateesh <bbalasateesh@gmail.com> wrote:> Hi, > > Can we get the list of IPs from server where the specified module is > installed. There is a search functionality in the Chef to do this. Is > there any way in puppet?If you are using Foreman[1], you could utilize its search functionality to get that kind of a data using a rest api[2]. You could even utilize that information from within puppet using a sample puppet function [3] cheers, Ohad [1] - http://theforeman.org [2] - http://theforeman.org/projects/foreman/wiki/Search_API [3] - http://blog.theforeman.org/2012/01/getting-foreman-search-results-into.html> > Thanks in advance, > Sateesh B. > > -- > 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. >-- 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.
Felix Frank
2012-Feb-03 09:45 UTC
Re: [Puppet Users] Search which the agent on which a specified module is been installed
Hi, On 02/01/2012 06:01 AM, sateesh wrote:> Hi, > > Can we get the list of IPs from server where the specified module is > installed. There is a search functionality in the Chef to do this. Is > there any way in puppet?not that I''m aware of, no. There are some simple workarounds you might consider, e.g. including code in your modules that logs hints to the puppetmaster logfile, then you could do some simple shell one-liners to find the agents that triggered that code. But I don''t think puppet does anything towards that end for you. HTH, Felix -- 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.