CHEF Cookbook Tutorial on AWS EC2 Ubuntu
From http://gettingstartedwithchef.com/first-steps-with-chef.html
The simplest way to use Chef is chef-solo. It allows you to install, configure and manage the packages required by your application without the complication of any client and server configuration. We’ll start with the common scenario that you have to setup a website designer with a WordPress environment.
Install chef
$ sudo su – root
# cd ~
curl -L https://www.opscode.com/chef/install.sh | bash
So, what do we need to do to get our web server up and running?
- Install and configure Apache
- Install and configure MySQL
- Install and configure PHP
- Deploy our website code to the site
How do we do that? We write our first Chef cookbook. But before we do that we should setup a file structure that will help us organise our various Chef files. Opscode, the makers of Chef provide one. They call it simply the Chef Repository.
wget http://github.com/opscode/chef-repo/tarball/master
Nex page
|
Discussion ¬