Skip to content

A sample chef repository and documents to setup steps for CentOS6. You don't use chef-server. You only use chef-solo and git.

Notifications You must be signed in to change notification settings

kohkimakimoto/chef-for-centos

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

A sample chef repository and documents to setup steps for CentOS6. You don't use chef-server. You only use chef-solo and git.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages