15
Chef Infrastructure as a Code

Overview of chef ( Infrastructure as a Code )

Embed Size (px)

DESCRIPTION

- Chef is a system and cloud infrastructure automation framework. - It easy to deploy servers and applications to any physical, virtual, or cloud location, no matter the size of the infrastructure.

Citation preview

Page 1: Overview of chef ( Infrastructure as a Code )

Chef Infrastructure as a Code

Page 2: Overview of chef ( Infrastructure as a Code )

Agendal

Agenda

l Why chef ?

l Basics of Chef

l Demo

l Question?

Page 3: Overview of chef ( Infrastructure as a Code )

Why chef ?

• Manual system administration

• Non-repeatable

• No version control

• Takes too long

Page 4: Overview of chef ( Infrastructure as a Code )

Install, configure & control

... servers in your sleep

Page 5: Overview of chef ( Infrastructure as a Code )

Chef

Chef is a system and cloud infrastructure automation framework. You define recipes of how you want your system to look and then chef makes it so.

Page 6: Overview of chef ( Infrastructure as a Code )

Chef

• Client-server architecture

• Embraces modern web technologies

• Best ideas from cfengine and Puppet

• Targeted to Linux, Solaris, Window, Mac OS

• Written in Ruby, recipes in Ruby

Page 7: Overview of chef ( Infrastructure as a Code )

Chef - IaaC

- Programmatically provision and configure

- Treat like any other code base

- Reconstruct business from code repository, data backup, and bare metal resources.

Page 8: Overview of chef ( Infrastructure as a Code )

Chef - IaaC

Page 9: Overview of chef ( Infrastructure as a Code )

Knife

Page 10: Overview of chef ( Infrastructure as a Code )

Cookbook

- Fundamental unit of configuration

- Cookbooks contain recipes, templates, files, custom resources, etc

- Code re-use and modularity

- Hundreds already onCommunity.opscode.com

Page 11: Overview of chef ( Infrastructure as a Code )

Cookbook

l recipes - list of instructions l attributes - variablesl definitions - macros of resourcesl files - files used by resourcesl libraries - Ruby to extend Chef DSLl metadata.rb l templates - ERB templates

Page 12: Overview of chef ( Infrastructure as a Code )

Node

• Chef-Client generates configuration Directly on nodes from their run list

• Reduce management complexity through abstraction

• Store the configuration of your programs in version control

Page 13: Overview of chef ( Infrastructure as a Code )

DEMO

Page 14: Overview of chef ( Infrastructure as a Code )

Hosted Chef

- Sign up for Opscode Hosted Chef - https://community.opscode.com/

- Create an Organization

Page 15: Overview of chef ( Infrastructure as a Code )

thanks~