I’m learning chef via its online tutorial Chef Server setting part in a local mode.
Why I ask this question?
when I run command knife ssl fetch on my Ubuntu 16.04 VM, , ERROR occur related to knife.rb’s chef_server_url setting.
- How to set a hostname for Chef server?
in my /etc/hosts, I have several hostnames for this VM, will Chef choose the first one when install Chef Server or just use localhost? Ask this is because the tutorial shows below lines in its install script
until (curl -D - localhost:8000/_status) | grep “200 OK”; do sleep 15s; done
while (curl localhost:8000/_status) | grep “fail”; do sleep 15s; done
this really confused me a lot.
BTW, in my hosts file I use:
hadoop, can I use this for Chef server at the same time?
- How to set the chef_server_url value for knife.rb once I have a valid hostname
I tried below:
for chef_server_url in knife.rb, but I always get error after running knife ssl fetch:
The service at the given URI does not accept SSL connections
Would you please help me out? Thanks a lot!