11
qiscus [email protected] alam ybs

Intro to Chef

Embed Size (px)

Citation preview

Page 2: Intro to Chef

PROVISIONING A RAILS SERVER

chef — puppet

Page 3: Intro to Chef

CHEF SOLO?

Page 4: Intro to Chef

WORKING WITH CHEF SOLO

/Gemfile

group :development do

gem 'knife-solo', '~> 0.4.2'

end

$ bundle

Page 5: Intro to Chef

DIVING INSetelah bundle success, selanjutnya kit bisa memulai dengan Chef Solo. Pertama kita akan memulai konfigurasi file Knife di lokal komputer / app.

$ cd config

knife solo init chef

$ cd chef

Page 6: Intro to Chef

$ ls -la

total 4

drwxr-xr-x 10 alamybs staff 340 Jun 17 10:32 .

drwxr-xr-x 16 alamybs staff 544 Jun 17 12:48 ..

drwxr-xr-x 3 alamybs staff 102 Jun 17 10:11 .chef

-rw-r--r-- 1 alamybs staff 12 Jun 17 10:32 .gitignore

drwxr-xr-x 3 alamybs staff 102 Jun 17 10:11 cookbooks

drwxr-xr-x 3 alamybs staff 102 Jun 17 10:11 data_bags

drwxr-xr-x 3 alamybs staff 102 Jun 17 10:11 environments

drwxr-xr-x 4 alamybs staff 136 Jun 17 12:49 nodes

drwxr-xr-x 3 alamybs staff 102 Jun 17 10:11 roles

drwxr-xr-x 4 alamybs staff 136 Jun 17 10:20 site-cookbooks

Page 7: Intro to Chef

CREATING OUR OWN COOKBOOK

$ knife cookbook create blackpaper -o site-cookbooks

Page 8: Intro to Chef

DEFINING DEFAULT VALUES

/attributes/default.rb

Page 9: Intro to Chef

/config/chef/nodes/.123.123.123.123.json

Page 10: Intro to Chef

WRITING RECIPES

Page 11: Intro to Chef

CAPISTRANO