bezrukavyi / chef-template

Chef template for standard ruby on rails app

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Step 1.

Init project for Chef

mkdir rails-chef
cd rails-chef
touch Gemfile

Add to Gemfile

source 'https://rubygems.org'

gem 'knife-solo', '~> 0.6.0'
gem 'knife-solo_data_bag', '~> 2.0.0'
gem 'berkshelf', '~> 6.3.1'
gem 'chef', '~> 12.18.31'

Install gems

gem install bundler
bundle i

Step 2.

Init chef-directory structure

knife solo init .

You will get next directory structure

.
├── .chef
├── cookbooks
├── data_bags
├── environments
├── nodes
├── roles
├── site-cookbooks
├── Berksfile

Install base cookbooks

Then add to Berksfile next cookbooks

source "https://api.berkshelf.com"

cookbook 'users', '~> 5.1.0'
cookbook 'sudo', '~> 3.5.3'
cookbook 'openssh', '~> 2.6.0'
cookbook 'ufw', '~> 3.1.0'
cookbook 'swap_tuning', '~> 0.2.0'
cookbook 'nodejs', '~> 4.0.0'
cookbook 'postgresql', '~> 6.1.1'
cookbook 'nginx', '~> 7.0.0'

cookbook 'rvm', github: 'martinisoft/chef-rvm', ref: 'v0.9.4'

About

Chef template for standard ruby on rails app


Languages

Language:Ruby 90.2%Language:HTML 9.8%