Class: Chef::Knife::ClusterBootstrap

Inherits:
Ironfan::Script show all
Defined in:
lib/chef/knife/cluster_bootstrap.rb

Instance Attribute Summary

Attributes included from Ironfan::KnifeCommon

#broker, #problems

Instance Method Summary (collapse)

Methods inherited from Ironfan::Script

#_run, #aggregates?, #aggregates_on_noop?, #prepares?, #prepares_on_noop?

Methods included from Ironfan::KnifeCommon

#all_computers, #bootstrapper, #configure_dry_run, #confirm_or_exit, #die, #discover_computers, #display, #exit_if_unhealthy!, #gemfile, #get_relevant_slice, #get_slice, #has_problem, #healthy?, included, load_deps, #load_ironfan, #pick_apart, #predicate_str, #progressbar_for_threads, #relevant?, #run, #run_bootstrap, #section, #sub_command, #wait_for_ssh

Instance Method Details

- (Object) confirm_execution(target)



65
66
67
68
# File 'lib/chef/knife/cluster_bootstrap.rb', line 65

def confirm_execution(target)
  ui.info "Bootstrapping the node redoes its initial setup -- only do this on an aborted launch."
  confirm_or_exit("Are you absolutely certain that you want to perform this action? (Type 'Yes' to confirm) ", 'Yes')
end

- (Object) perform_execution(target)



59
60
61
62
63
# File 'lib/chef/knife/cluster_bootstrap.rb', line 59

def perform_execution(target)
  ensure_common_environment(target)
  # Execute across all servers in parallel
  Ironfan.parallel(target.values) {|computer| run_bootstrap(computer)}
end