Method: KnifeCloudstack::CsStackCreate#find_public_ips
- Defined in:
- lib/chef/knife/cs_stack_create.rb
#find_public_ips(query) ⇒ Object
256 257 258 259 260 261 262 263 |
# File 'lib/chef/knife/cs_stack_create.rb', line 256 def find_public_ips(query) hostnames = search_nodes(query, 'hostname') puts "Found hostnames: #{hostnames.inspect}" ips = hostnames.map { |h| public_ip_for_host h } ips.compact.uniq end |