summaryrefslogtreecommitdiff
path: root/chef/lib/chef/knife/bootstrap.rb
diff options
context:
space:
mode:
authorAdam Jacob <adam@opscode.com>2010-05-28 12:06:10 -0700
committerAdam Jacob <adam@opscode.com>2010-05-28 12:06:10 -0700
commitc829c622bd1c159257139161c1255ca2f260c124 (patch)
treec4b84c9e5ab193c41fd8dc7d36a689c8d8fe99fe /chef/lib/chef/knife/bootstrap.rb
parent71ac42dcf449d1c2c2d06df40700a005cbed119d (diff)
downloadchef-c829c622bd1c159257139161c1255ca2f260c124.tar.gz
Adding EC2 and separate bootstrap commands
Diffstat (limited to 'chef/lib/chef/knife/bootstrap.rb')
-rw-r--r--chef/lib/chef/knife/bootstrap.rb16
1 files changed, 8 insertions, 8 deletions
diff --git a/chef/lib/chef/knife/bootstrap.rb b/chef/lib/chef/knife/bootstrap.rb
index b320a86397..6a7e591615 100644
--- a/chef/lib/chef/knife/bootstrap.rb
+++ b/chef/lib/chef/knife/bootstrap.rb
@@ -1,6 +1,6 @@
#
# Author:: Adam Jacob (<adam@opscode.com>)
-# Copyright:: Copyright (c) 2009 Opscode, Inc.
+# Copyright:: Copyright (c) 2010 Opscode, Inc.
# License:: Apache License, Version 2.0
#
# Licensed under the Apache License, Version 2.0 (the "License");
@@ -26,12 +26,6 @@ class Chef
banner "Sub-Command: knife bootstrap FQDN [RUN LIST...] (options)"
- option :concurrency,
- :short => "-C NUM",
- :long => "--concurrency NUM",
- :description => "The number of concurrent connections",
- :default => nil
-
option :ssh_user,
:short => "-x USERNAME",
:long => "--ssh-user USERNAME",
@@ -43,6 +37,12 @@ class Chef
:long => "--ssh-password PASSWORD",
:description => "The ssh password"
+ option :chef_node_name,
+ :short => "-N NAME",
+ :long => "--node-name NAME",
+ :description => "The Chef node name for your new node"
+
+
def h
@highline ||= HighLine.new
end
@@ -86,6 +86,7 @@ log_level :info
log_location STDOUT
chef_server_url "#{Chef::Config[:chef_server_url]}"
validation_client_name "#{Chef::Config[:validation_client_name]}"
+#{config[:chef_node_name] == nil ? "# Using default node name" : "node_name \"#{config[:chef_node_name]}\""}
EOP
) > /etc/chef/client.rb
@@ -123,4 +124,3 @@ EOH
end
end
-