Unable to load bootstrap node with chef

I created a basic chef infrastructure that contains a workstation, a Chef hosting server, and an Ubuntu server to act as a node. I use this setting in my workplace and therefore a proxy is required to connect to the Internet. I made the necessary proxy settings both in knife.rband on the Ubuntu server. Both the workstation and node are correctly connected to the Internet. Here is the problem. When I try to load this node using knife, I get the following error:

<My Node IP> --2014-02-12 10:29:05--  https://www.opscode.com/chef/install.sh
<My Node IP> Resolving www.opscode.com (www.opscode.com)... 184.106.28.91
<My Node IP> Connecting to www.opscode.com (www.opscode.com)|184.106.28.91|:443... failed: Connection refused.
<My Node IP> bash: line 83: chef-client: command not found

Note that I used the following command to load node -

knife bootstrap <My Node IP> --sudo -x <username> -P <password> -N <name> 

could you help me? Thanks in advance.

+3
source share
3 answers

. knife.rb bootstrap-proxy.

knife[:bootstrap_proxy] = "http://username:password@proxy:port"

-

knife bootstrap <My Node IP> --sudo -x <username> -P <password> -N <name>

!

+4

. :

knife bootstrap <My Node IP> --sudo -x <username> -P <password> -N <name> --bootstrap-wget-options --no-check-certificate

.

0

. , "Connection failed - Connection https://server.com/organizations/sample/nodes/node1" "/etc/hosts" IP- i.e "server.com", .

vi/etc/hosts

192.168.159.100 server.com

0
source

All Articles