module ElasticInfra::DirectorBootstrapBase

Common DirectorBootstrap module

Public Instance Methods

bootstrap_template() click to toggle source
# File lib/chef/knife/director_bootstrap_base.rb, line 6
def bootstrap_template
  return nil if config[:bootstrap_template] == '__no_template__'
  config[:bootstrap_template] || @default_template
end
run() click to toggle source
Calls superclass method
# File lib/chef/knife/director_bootstrap_base.rb, line 11
def run
  unless config[:environment]
    puts 'You must specify environment other than _default'
    show_usage
    exit 1
  end
  target_hostname = name_args[0].gsub(/.*@/, '')
  config[:chef_node_name] ||= target_hostname
  config[:bootstrap_template] = bootstrap_template
  super
end