lib/chef/knife/server_bootstrap_standalone.rb in knife-server-1.0.0 vs lib/chef/knife/server_bootstrap_standalone.rb in knife-server-1.0.1
- old
+ new
@@ -50,16 +50,18 @@
create_root_client
install_client_key
end
def standalone_bootstrap
- ENV['WEBUI_PASSWORD'] = config[:webui_password]
- ENV['AMQP_PASSWORD'] = config[:amqp_password]
+ ENV['WEBUI_PASSWORD'] = config_val(:webui_password)
+ ENV['AMQP_PASSWORD'] = config_val(:amqp_password)
+ ENV['NO_TEST'] = "1" if config[:no_test]
bootstrap = Chef::Knife::Bootstrap.new
bootstrap.name_args = [ config[:host] ]
Chef::Knife::Bootstrap.options.keys.each do |attr|
bootstrap.config[attr] = config_val(attr)
end
+ bootstrap.ui = self.ui
bootstrap.config[:distro] = bootstrap_distro
bootstrap.config[:use_sudo] = true unless config_val(:ssh_user) == "root"
bootstrap
end