Chef solo recipes for Ubuntu 12.04 LTS
that sets up:
- Nginx
- Passenger
- Postgres
- rbenv to manage rubies
The following steps will connect to your server as the root user in
order to install and configure your environment. Replace IP_ADDRESS
with your server's IP address in the following commands.
-
If you haven't already, use
ssh-copy-id root@IP_ADDRESS
to enable passwordless SSH for your server. That will remove the need for you to type in your password multiple times during the process. -
Open up
node.json
and change the user password for the deploy user AND for postgres.
The first step is to initialize your server for using Chef. I've
packaged all the necessary dependencies into Catalyzer for you. All
you need to do is use the --initialize
option the first time.
ruby catalyze.rb IP_ADDRESS --initialize
The last step is to actually run Chef on your server. This will run through all of the packages we want to install and install them.
ruby catalyze.rb IP_ADDRESS
And that's it!