A friend of mine recently provided me with access to create some VPS machines, so I’ve set up:
- A Master Chef server
- A Database server
- A Webhosting server
Now I’m trying to learn how to set up Chef on them. I tried doing it as described on the Chef website. It describes installing Chef Server on all machines. I was having problems with this and, through a quick search, found another site which details installing Chef Server on the main server and the Client software on the others. Not sure if this is correct. Â However, I tried both ways.
I had a problem with one of the VPS machines and found this solution: Please add a server section for to /etc/opscode/private-chef.rb! It turns out the VPS did not have the hostname set up as a FQDN name. Fixing this resolved that problem.
I’ve set up the server and have tried creating users, however I get an error that Chef cannot connect to the Nginx server on port 443 on 127.0.0.1 Â I’m trying to figure out why. I’ve disabled SELinux as recommended and even added in specific firewall rules through iptables to try and allow connections. I can’t connect to port 443 on the Master server from my desktop either. Not sure what’s going on there. Â I guess I can create users on the Master server, but not Client servers. It just worked now with the Master server. There must be some way to connect the clients to the server for user creation… or perhaps only the Master server has users..?
At the moment, the Master server seems to be up and working but cannot be contacted outside the VPS network. Not sure if I have to install some Chef WebUI application..? Â One VPS has the client software installed but I haven’t found how to configure that to connect to the Master server yet. We’ll see how it goes.