On Dec 17, 2008, at 9:28 AM, Eric Gerlach wrote:
> Which is what I'm interested in doing :-)
>
> Based on the second quote, there, if I'm understanding this  
> correctly, I could
> do something like (stealing a bit from the Capistrano example):
>
> --- /etc/hosts.erb
> <% require 'iclassify'
>
> # More setup goes here
>
> ic = IClassify::Client.new(ic_server, ic_user, ic_password)
> nodes = ic.search('tag:web-server', [ 'fqdn', 'ipaddress' ]) %>
>
> <% nodes.each do |n| %>
>  <%= n.attrib?('ipaddress') %> <%= n.attrib('fqdn') %>
> <% end %>
> ---
>
> Am I correct?

Yes.

> (Now that I think about it, if I am, I can just write my own class  
> to query the
> stored configs and be done with it :-)

Yes.

> Maybe I'll take this to the dev list after the holidays to get some  
> help
> working on it.  It's something I'd like to use.

Awesome.

Adam

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to