Sha256: f960ab388520ae27c9f6aa47be148b463737be9244c8b95759d930a266b1c101

Contents?: true

Size: 854 Bytes

Versions: 9

Compression:

Stored size: 854 Bytes

Contents

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

available_monitors = PoolParty::Monitors.available_monitors
o = PoolParty::Optioner.new(ARGV) do |opts, optioner|
  opts.on('-n name', '--name name', 'Host name')    { |h| optioner.hostname h }
  opts.on('-l', '--no-shell', 'No shell') {optioner.noshell true}
end
@hostname = o.hostname ? o.hostname : `hostname`.chomp
@hostname = "node0" if @hostname == "master" # Quick fix to make sure we have a node running on the master as well

o.loaded_clouds.each do |cloud|
  
  with_cloud(cloud, {:hostname => @hostname}) do
    
    boot_file = "#{Messenger.append_dir}/pm_node_rel-0.1"
    command = Messenger.erl_command(hostname, "-boot #{boot_file} #{noshell ? "" : "-detached -heart"}")
    
    Kernel.system command
  end  
  
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
auser-poolparty-0.2.45 bin/cloud-ensure-provisioning
auser-poolparty-0.2.46 bin/cloud-ensure-provisioning
auser-poolparty-0.2.47 bin/cloud-ensure-provisioning
auser-poolparty-0.2.48 bin/cloud-ensure-provisioning
auser-poolparty-0.2.49 bin/cloud-ensure-provisioning
auser-poolparty-0.2.50 bin/cloud-ensure-provisioning
auser-poolparty-0.2.51 bin/cloud-ensure-provisioning
auser-poolparty-0.2.52 bin/cloud-ensure-provisioning
auser-poolparty-0.2.53 bin/cloud-ensure-provisioning