A sample chef repository and documents to setup steps for CentOS6. You don't use chef-server. You only use chef-solo and git.
Ruby
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
bin
config
cookbooks
roles
.gitignore
README.md
Rakefile

README.md

Chef for CentOS

This is a sample chef repository and installation steps document for CentOS6.

At this repository you don't use chef-server. You only use chef-solo and git command in the custom bash script chef-host.

Usage

Following will build your CentOS sever environment in a few steps.

  1. Modify your host name.

     # vi /etc/sysconfig/network
    

    You need to edit like following.

     NETWORKING=yes
     HOSTNAME=web
    
  2. Reboot system to use modified hostname.

     # reboot
    
  3. Install chef using Omnibus. You only run below command.

     # curl -L https://www.opscode.com/chef/install.sh | bash
    

    note) Omunibus is a installer of chef packaging. If you want to get more infomations, see http://www.opscode.com/blog/2012/06/29/omnibus-chef-packaging/.

  4. Install git

     # yum install -y git
    
  5. Clone this git repository

     # git clone https://github.com/kohkimakimoto/chef-for-centos.git /var/chef
    
  6. Run chef-solo using following command

     # sh /var/chef/bin/chef-host
    

    You will get environments of Apache(httpd), MySQL, PHP and 3rd party yum repositories(remi and epel).

See also

The following page is my blog post about it written in Japanese.

http://kohkimakimoto.hatenablog.com/entry/2013/02/15/121741