chef for beginners module 1

22
Chef for Beginners Introduction Slide 1 of 22

Upload: chef

Post on 16-Apr-2017

115 views

Category:

Software


1 download

TRANSCRIPT

Page 1: Chef for beginners   module 1

Chef for BeginnersIntroduction

Slide 1 of 22

Page 2: Chef for beginners   module 1

Bill MeyerSr. Solutions Architect

[email protected]

Slide 2 of 22

Page 3: Chef for beginners   module 1

Introduce YourselfNameCurrent job roleExperience with Chef and/or config managementFavorite Text Editor

Slide 3 of 22

Page 4: Chef for beginners   module 1

Expectations

Slide 4 of 22

Page 5: Chef for beginners   module 1

You will leave this workshop with a basicunderstanding of Chef's core components,architecture, commonly used tools, and basictroubleshooting methods.

Expectations

Slide 5 of 22

Page 6: Chef for beginners   module 1

You will leave this workshop with a basic

understanding of Chef's core components,

architecture, commonly used tools, and basic

troubleshooting methods.

You bring with you your own domain expertise and

problems. Chef is a framework for solving those

problems. Our job is to teach you how to express

solutions to your problems with Chef.

Expectations

Slide 6 of 22

Page 7: Chef for beginners   module 1

After completing this workshop, you should be able to:

Use Chef Resources to define the state of your systemWrite and use Chef recipes and cookbooksAutomate testing of cookbooks

Workshop Objectives

Slide 7 of 22

Page 8: Chef for beginners   module 1

AgendaGetting a WorkstationUsing ResourcesBuilding CookbooksTesting with Test Kitchen

Slide 8 of 22

Page 9: Chef for beginners   module 1

What can Chef do?

Slide 9 of 22

Page 10: Chef for beginners   module 1

Chef can...

Slide 10 of 22

Page 11: Chef for beginners   module 1

... automate how you build, deploy, and manage yourinfrastructure.

Chef can...

Slide 11 of 22

Page 12: Chef for beginners   module 1

... automate how you build, deploy, and manage yourinfrastructure.

... integrate with cloud-based platforms such as Azureand Amazon Elastic Compute Cloud to automaticallyprovision and configure new machines.

Chef can...

Slide 12 of 22

Page 13: Chef for beginners   module 1

So what is Chef ?

Slide 13 of 22

Page 14: Chef for beginners   module 1

Chef is...

Slide 14 of 22

Page 15: Chef for beginners   module 1

... a large set of tools that are able to be used onmultiple platforms and in numerous configurations.

Chef is...

Slide 15 of 22

Page 16: Chef for beginners   module 1

... a large set of tools that are able to be used onmultiple platforms and in numerous configurations.

... like learning a language. You will reach fluencyvery fast but it will take practice until you becomecomfortable.

Chef is...

Slide 16 of 22

Page 17: Chef for beginners   module 1

... a large set of tools that are able to be used onmultiple platforms and in numerous configurations.

... like learning a language. You will reach fluencyvery fast but it will take practice until you becomecomfortable.

A great way to learn Chef is to use Chef

Chef is...

Slide 17 of 22

Page 18: Chef for beginners   module 1

In this workshop you will use a pre-built virtualworkstation with all the necessary tools alreadyinstalled so you can start using Chef right away.

Chef - Lab System Architecture

Slide 18 of 22

Page 19: Chef for beginners   module 1

SSH Into the Remote Workstation

$ ssh <ipaddress> -l chef

Slide 19 of 22

Page 20: Chef for beginners   module 1

SSH Into the Remote Workstation

$ ssh <ipaddress> -l chef

or

$ ssh chef@<ipaddress>

Slide 20 of 22

Page 21: Chef for beginners   module 1

Getting a WorkstationThe chef user has been granted password-less sudoers access.

The following software is installed on the remote workstation:

Chef DKDockerkitchen-docker gem

Slide 21 of 22

Page 22: Chef for beginners   module 1

On to Module 2

Slide 22 of 22