I want to configure chef-server over Centos 7, I installed the chef-server-core, then I added this line to /etc/hosts
192.168.0.4 chef.example.com
Then I put this command:
chef-server-ctl reconfigure
Everything is ok, except when I tried to create a user with this command:
chef-server-ctl user-create admin admin admin admin@chef secret -f admin.pem
I got this message:
ERROR: Error connecting to https://127.0.0.1/users/, retry 1/5
I made a lot of google and all solutions suggest to change the hostname in /etc/hosts, but not working in my machine.
Any Help!