summaryrefslogtreecommitdiff
path: root/lib/chef/knife
diff options
context:
space:
mode:
authorJerry Aldrich III <jerry@chef.io>2016-12-01 01:35:19 -0500
committerJerry Aldrich III <jerry@chef.io>2016-12-01 09:02:34 -0500
commite0c2ccbb1132146b7a96019095483ee08f9e26ce (patch)
tree02a42fd80666d3a3e112f793b3b671a3fcc2be49 /lib/chef/knife
parent0a2e27001c3c678f2a0a7d354a14a4e36c6555e9 (diff)
downloadchef-e0c2ccbb1132146b7a96019095483ee08f9e26ce.tar.gz
Modify `knife configure` example `chef_server_url`
A working `knife.rb` needs `chef_server_url` to contain `organizations` in it's url. Signed-off-by: Jerry Aldrich III <jerry@chef.io>
Diffstat (limited to 'lib/chef/knife')
-rw-r--r--lib/chef/knife/configure.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/chef/knife/configure.rb b/lib/chef/knife/configure.rb
index e726e32684..48007bbee7 100644
--- a/lib/chef/knife/configure.rb
+++ b/lib/chef/knife/configure.rb
@@ -133,7 +133,7 @@ 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 => "https://#{server_name}:443")
+ @chef_server = config[:chef_server_url] || ask_question("Please enter the chef server URL: ", :default => "https://#{server_name}/organizations/myorg")
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")