summaryrefslogtreecommitdiff
path: root/lib/chef/knife/configure.rb
diff options
context:
space:
mode:
authordanielsdeleo <dan@opscode.com>2013-05-13 09:01:25 -0700
committerdanielsdeleo <dan@opscode.com>2013-05-13 09:01:25 -0700
commit04e3e917ad70a5312d0c54d98f09912691a5ad98 (patch)
tree4de90d3c14a2dd3710c6a4593fffcf7cc8a9c1cc /lib/chef/knife/configure.rb
parentbc76019ea495d5ff8fef0b8bf385423c52f43c8e (diff)
downloadchef-04e3e917ad70a5312d0c54d98f09912691a5ad98.tar.gz
[CHEF-4176] update `knife configure -i` for Chef 11
* Chef 11 defaults to HTTPS on 443 * Chef 11 admin key is in /etc/chef-server/admin.pem * Chef 11 validator key is in /etc/chef-server/chef-validator.pem Ref: http://www.opscode.com/blog/2013/03/11/chef-11-server-up-and-running/
Diffstat (limited to 'lib/chef/knife/configure.rb')
-rw-r--r--lib/chef/knife/configure.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/chef/knife/configure.rb b/lib/chef/knife/configure.rb
index eaf42544c0..8e725952b4 100644
--- a/lib/chef/knife/configure.rb
+++ b/lib/chef/knife/configure.rb
@@ -133,17 +133,17 @@ EOH
def ask_user_for_config
server_name = guess_servername
- @chef_server = config[:chef_server_url] || ask_question("Please enter the chef server URL: ", :default => "http://#{server_name}:4000")
+ @chef_server = config[:chef_server_url] || ask_question("Please enter the chef server URL: ", :default => "https://#{server_name}:443")
if config[:initial]
@new_client_name = config[:node_name] || ask_question("Please enter a name for the new user: ", :default => Etc.getlogin)
@admin_client_name = config[:admin_client_name] || ask_question("Please enter the existing admin name: ", :default => 'admin')
- @admin_client_key = config[:admin_client_key] || ask_question("Please enter the location of the existing admin's private key: ", :default => '/etc/chef/admin.pem')
+ @admin_client_key = config[:admin_client_key] || ask_question("Please enter the location of the existing admin's private key: ", :default => '/etc/chef-server/admin.pem')
@admin_client_key = File.expand_path(@admin_client_key)
else
@new_client_name = config[:node_name] || ask_question("Please enter an existing username or clientname for the API: ", :default => Etc.getlogin)
end
@validation_client_name = config[:validation_client_name] || ask_question("Please enter the validation clientname: ", :default => 'chef-validator')
- @validation_key = config[:validation_key] || ask_question("Please enter the location of the validation key: ", :default => '/etc/chef/validation.pem')
+ @validation_key = config[:validation_key] || ask_question("Please enter the location of the validation key: ", :default => '/etc/chef-server/chef-validator.pem')
@validation_key = File.expand_path(@validation_key)
@chef_repo = config[:repository] || ask_question("Please enter the path to a chef repository (or leave blank): ")