- From: Noah Kantrowitz <
>
- To:
- Subject: [chef] Re: chef_server_url
- Date: Tue, 19 May 2015 22:25:42 -0700
Client config goes in /etc/chef/client.rb by default.
--Noah
On May 19, 2015, at 10:18 PM, Stuart Cracraft
<
>
wrote:
>
I am trying to do an initial chef-client run on a client (the chef server
>
is named “chef-server”)
>
>
My question is, where do I set it so that it goes to “chef-server” instead
>
of local-host.
>
>
chef_server_url is wrong below and should be
>
>
chef_server_url "https://chef-server:443”
>
>
:~/chef-repo/.chef#
>
chef-client
>
[2015-05-19T22:08:19-07:00] INFO: Forking chef instance to converge...
>
Starting Chef Client, version 12.3.0
>
[2015-05-19T22:08:19-07:00] INFO: *** Chef 12.3.0 ***
>
[2015-05-19T22:08:19-07:00] INFO: Chef-client pid: 9159
>
Creating a new client identity for chef-client using the validator key.
>
[2015-05-19T22:08:23-07:00] INFO: Client key /etc/chef/client.pem is not
>
present - registering
>
[2015-05-19T22:08:23-07:00] ERROR: Connection refused connecting to
>
https://localhost/clients, retry 1/5
>
[2015-05-19T22:08:28-07:00] ERROR: Connection refused connecting to
>
https://localhost/clients, retry 2/5
>
[2015-05-19T22:08:33-07:00] ERROR: Connection refused connecting to
>
https://localhost/clients, retry 3/5
>
[2015-05-19T22:08:38-07:00] ERROR: Connection refused connecting to
>
https://localhost/clients, retry 4/5
>
[2015-05-19T22:08:43-07:00] ERROR: Connection refused connecting to
>
https://localhost/clients, retry 5/5
>
>
================================================================================
>
Chef encountered an error attempting to create the client "chef-client"
>
================================================================================
>
>
Network Error:
>
--------------
>
There was a network error connecting to the Chef Server:
>
Connection refused - Connection refused connecting to
>
https://localhost/clients, giving up
>
>
Relevant Config Settings:
>
-------------------------
>
chef_server_url "https://localhost:443"
>
>
If your chef_server_url is correct, your network could be down.
>
>
[2015-05-19T22:08:48-07:00] FATAL: Stacktrace dumped to
>
/var/chef/cache/chef-stacktrace.out
>
Chef Client failed. 0 resources updated in 29.021418726 seconds
>
[2015-05-19T22:08:48-07:00] ERROR: Connection refused - Connection refused
>
connecting to https://localhost/clients, giving up
>
[2015-05-19T22:08:48-07:00] FATAL: Chef::Exceptions::ChildConvergeError:
>
Chef run process exited unsuccessfully (exit code 1)
>
:~/chef-repo/.chef#
>
>
Attachment:
signature.asc
Description: Message signed with OpenPGP using GPGMail
[chef] Re: Using Chef offline, Joe Nuspl, 05/20/2015
Archive powered by MHonArc 2.6.16.