lib/beaker/hypervisor/blimper.rb in beaker-1.11.0 vs lib/beaker/hypervisor/blimper.rb in beaker-1.11.1
- old
+ new
@@ -17,12 +17,12 @@
fleet = @blimpy.fleet do |fleet|
@hosts.each do |host|
amitype = host['vmname'] || host['platform']
amisize = host['amisize'] || 'm1.small'
- #use snapshot provided for this host
- image_type = host['snapshot']
+ #use snapshot provided for this host
+ image_type = host['snapshot']
if not image_type
raise "No snapshot/image_type provided for blimpy provisioning"
end
ami = ami_spec[amitype]
fleet.add(:aws) do |ship|
@@ -77,10 +77,10 @@
ship.wait_for_sshd
name = ship.name
host = @hosts.select { |host| host.name == name }[0]
host['ip'] = ship.dns
host.exec(Command.new("hostname #{name}"))
- ip = get_ip(host)
+ ip = get_ip(host)
domain = get_domain_name(host)
etc_hosts += "#{ip}\t#{name}\t#{name}.#{domain}\n"
end
# Send our hosts information to the nodes