Sha256: e8fa0a6050471c090249c84641cfc25d11ad4c4c272ce6f54f6f84c73b7ee5ca

Contents?: true

Size: 800 Bytes

Versions: 6

Compression:

Stored size: 800 Bytes

Contents

#!/usr/bin/env ruby
$:.unshift(File.join(File.dirname(__FILE__), "..", "lib"))
require "poolparty"
require "poolparty/provision/boot_strapper"

o = PoolParty::Optioner.new(ARGV) do |opts, optioner|
  opts.on('-n cloudname', '--name name', 'Start cloud by this name')    { |c| optioner.cloudname c }
end

o.loaded_clouds.each do |cld|
  # If an IP or DNS name is given, bootstrap that node, otherwise, bootstrap all running nodes.
  nodes = !o.unflagged_args.empty? ?  o.unflagged_args : cld.running_instance_ips
  if nodes.empty?
    puts "No nodes to bootstrap"
  else
    nodes.each do |address|
      puts "\nBootStrapping: #{address}\n--------------------"
      ::PoolParty::Provision::BootStrapper.new address, {:full_keypair_path => cld.keypair.full_filepath, :cloud => cld}
    end
  end
end

Version data entries

6 entries across 6 versions & 2 rubygems

Version Path
auser-poolparty-1.1.1 bin/cloud-bootstrap
auser-poolparty-1.1.3 bin/cloud-bootstrap
auser-poolparty-1.1.4 bin/cloud-bootstrap
auser-poolparty-1.1.5 bin/cloud-bootstrap
fairchild-poolparty-1.1.3 bin/cloud-bootstrap
fairchild-poolparty-1.1.4 bin/cloud-bootstrap