ruby cooking

41
Cooking with Ruby by Stoyan Zhekov 1

Upload: stoyan-zhekov

Post on 17-May-2015

2.743 views

Category:

Technology


1 download

DESCRIPTION

Chef is an open source systems integration framework built to bring the benefits of configuration management to your entire infrastructure.

TRANSCRIPT

Page 1: Ruby cooking

CookingwithRuby

by Stoyan Zhekov

1

Page 2: Ruby cooking

自己紹介

•名前: ストヤン ジェコフ

•ブルガリア人

•3人の男の子のパパ

•システムアドミニストレータ

2

Page 3: Ruby cooking

System Administrator3

Page 4: Ruby cooking

4

Page 5: Ruby cooking

買います

5

Page 6: Ruby cooking

買います

インストル

6

Page 7: Ruby cooking

買います

インストル

設定

7

Page 8: Ruby cooking

Doesit

Scale?

8

Page 9: Ruby cooking

9

Page 10: Ruby cooking

10

Page 11: Ruby cooking

Outsourcing

11

Page 12: Ruby cooking

S aaS

P aaS

I aaS

12

Page 13: Ruby cooking

... aaS = Outsourcing

13

Page 14: Ruby cooking

14

Page 15: Ruby cooking

S aaS

P aaS

I aaS

15

Page 16: Ruby cooking

16

Page 17: Ruby cooking

17

Page 18: Ruby cooking

18

Page 19: Ruby cooking

Infrastructure(or Hardware)

as a

Code19

Page 20: Ruby cooking

IaaC20

Page 21: Ruby cooking

IaaC

21

Page 22: Ruby cooking

22

Page 23: Ruby cooking

Chef23

Page 24: Ruby cooking

Config: JSON

Code: Ruby

24

Page 25: Ruby cooking

Resources

•Files

•OS packages

•Ruby Gems

•Templates

25

Page 26: Ruby cooking

26

Page 27: Ruby cooking

Recipe

27

Page 28: Ruby cooking

Cookbook

28

Page 29: Ruby cooking

29

Page 30: Ruby cooking

Node

attributes

30

Page 31: Ruby cooking

Roles

Describe the node purpose

31

Page 32: Ruby cooking

RunList( order matters! )

32

Page 33: Ruby cooking

gem install ohai

gem install chef

33

Page 34: Ruby cooking

ohai

34

Page 35: Ruby cooking

Chef-solo35

Page 36: Ruby cooking

Web Service (IaaS)

36

Page 37: Ruby cooking

Chef-client

• Authentication

• Send local info(ohai)

• Receive & run recipes

• Can run as a daemon

37

Page 38: Ruby cooking

38

Page 39: Ruby cooking

http://opscode.com/

39

Page 40: Ruby cooking

http://auser.github.com/poolparty/

Vagrant

40

Page 41: Ruby cooking

41