Slide 1

Slide 1 text

#CHEFCONF2014

Slide 2

Slide 2 text

MOVING DATA CENTERS IS SCARY, MAKE IT LESS SCARY WITH CHEF! ! U-HAUL NOT INCLUDED. // MANNY TOLEDO @MTLDO // CHRIS FORTIER @CFORTIER https://flic.kr/p/5mj9gS

Slide 3

Slide 3 text

CHALLENGE

Slide 4

Slide 4 text

WHAT IS BEHANCE? The leading online platform to showcase & discover creative work. The creative world updates their work in one place to broadcast it widely and efficiently. Companies explore the work and access talent on a global scale.

Slide 5

Slide 5 text

No content

Slide 6

Slide 6 text

No content

Slide 7

Slide 7 text

THE BODEGA Everything except the (test) kitchen sink

Slide 8

Slide 8 text

https://flic.kr/p/bmjLbd

Slide 9

Slide 9 text

BC = BEFORE CHEF

Slide 10

Slide 10 text

No content

Slide 11

Slide 11 text

USE CHEF TO RUN A BASH SCRIPT? PLEASE DON’T

Slide 12

Slide 12 text

THE NEW (CHEF) WAY

Slide 13

Slide 13 text

THE BIG MOVE Moving from Rackspace to AWS.

Slide 14

Slide 14 text

FROM PHYSICAL TO A CLOUD http://bit.ly/cWtLwX http://bit.ly/1jsea9G

Slide 15

Slide 15 text

THE QEOPS TEAM Sounds suspiciously like “DevOps”. It’s what happens when QE and Ops work together on the same project.

Slide 16

Slide 16 text

OPS QE

Slide 17

Slide 17 text

It takes a family of three to care for a single puppy, but a few cowboys can drive tens of thousands of cows over great distances. “ ” —Joshua McKenty, CTO of Piston Cloud

Slide 18

Slide 18 text

Need to maintain current infrastructure Need to build new products in AWS Need to migrate current infrastructure Need Development and QE environments ONE SET OF COOKBOOKS FOR ALL

Slide 19

Slide 19 text

PROTIP: ! Everyone needs to sit together.

Slide 20

Slide 20 text

WHY CHEF? IT’S DELIGHTFUL !

Slide 21

Slide 21 text

DOGFOODING THE COOKBOOKS Cookbooks tested on Bodegas. Everyday.

Slide 22

Slide 22 text

CHEF-CLIENT EVERYDAY = RAINBOWS AND UNICORNS. RIGHT?

Slide 23

Slide 23 text

CHEF-CLIENT EVERYDAY != RAINBOWS AND UNICORNS

Slide 24

Slide 24 text

! Know your versions Dedicated repo mirrors Control dependencies CONTROL ALL THE THINGS

Slide 25

Slide 25 text

DOGFOOD ALL THE QE INSTANCES

Slide 26

Slide 26 text

MULTIPLE LOCATIONS How does it work in multiple locations?

Slide 27

Slide 27 text

Global Namspace for attributes node['be']['location']

Slide 28

Slide 28 text

Test-Suite Samples suites: - name: bodega-stage-aws-php55 provisioner: client_rb: environment: "stage-aws" run_list: - recipe[bebootstrap::default] - recipe[bebodega::default] attributes: authorization: sudo: users: [ "jenkins" ] be: location: "aws" php: version: "5.5" bedatadog: apache: true mondo: true mysql: true suites: - name: bodega-stage-rax-php54 provisioner: client_rb: environment: "stage-aws" run_list: - recipe[bebootstrap::default] - recipe[bebodega::default] attributes: authorization: sudo: users: [ "jenkins" ] be: location: "rax" php: version: "5.4" bedatadog: apache: true mondo: true mysql: true

Slide 29

Slide 29 text

I need new hotness for development! “ ” —RANDOM DEVELOPER Yeah, we can make it happen. “ ” —OPERATIONS

Slide 30

Slide 30 text

CHEF GATEKEEPER ATTRIBUTES BEPHP::DEFAULT RECIPE BEPHP::DEFAULT ATTRIBUTE BEPHP::BEPHP55 ATTRIBUTE

Slide 31

Slide 31 text

WORKFLOW AND TESTING PIPELINE Jenkins for the win!

Slide 32

Slide 32 text

GITHUB SERVERSPEC CHEFSPEC JENKINS KNIFE-SPORK BERKSHELF RUBOCOP FOODCRITIC TESTKITCHEN MERGEATRON

Slide 33

Slide 33 text

TESTS JENKINS MERGEATRON PULL REQUEST GITHUB

Slide 34

Slide 34 text

ONLY JENKINS PUSHES COOKBOOKS

Slide 35

Slide 35 text

I CAN TEST ON MY LAPTOP

Slide 36

Slide 36 text

PROTIP: ! Try testing at 30,000 feet

Slide 37

Slide 37 text

CHEF TEST MONITORING

Slide 38

Slide 38 text

WHAT IS OUR PROCESS All the process.

Slide 39

Slide 39 text

! Code wins arguments Chef is idempotent, your cookbooks might not be Treat servers as ephemeral Lock environments

Slide 40

Slide 40 text

OBLIGATORY: OF COURSE WE’RE HIRING!

Slide 41

Slide 41 text

THANK YOU! MANNY TOLEDO // @MTLDO CHRIS FORTIER // @CFORTIER Speaker Hours: ! Right now. In the Marina Room.