chefconf 2015 cleaning up the kitchen

62
Cleaning up the Kitchen

Upload: aaron-blythe

Post on 18-Jul-2015

127 views

Category:

Technology


3 download

TRANSCRIPT

Page 1: ChefConf 2015 Cleaning up the Kitchen

Cleaning up the Kitchen

Page 2: ChefConf 2015 Cleaning up the Kitchen

Cleaning up the Kitchen@ablythe

Page 3: ChefConf 2015 Cleaning up the Kitchen

Lessons

• Be Patient/Be Hungry

• Look outward

– Ask Community

– Ask Chef

• You can’t please all the people

• Know your constraints and work within them

@ablythe

Page 4: ChefConf 2015 Cleaning up the Kitchen

Recommendations • Have a focused team - Configuration Management

does not just happen• Focus on the Workflow• Incent your community to work together• Define how your collective organization should use

roles/environments/data bags• Educate!!• Involve Your Friends at Chef

@ablythe

Page 5: ChefConf 2015 Cleaning up the Kitchen

http://www.slideshare.net/AaronBlythe/

@ablythe

Page 6: ChefConf 2015 Cleaning up the Kitchen

Aaron Blythe

@ablythe

http://www.meetup.com/DevOps-Kansas-City/

Page 7: ChefConf 2015 Cleaning up the Kitchen
Page 8: ChefConf 2015 Cleaning up the Kitchen

Founded in 1979

Page 9: ChefConf 2015 Cleaning up the Kitchen
Page 10: ChefConf 2015 Cleaning up the Kitchen
Page 11: ChefConf 2015 Cleaning up the Kitchen

2011 2012 2014 20152013

Journey With

@ablythe

Page 12: ChefConf 2015 Cleaning up the Kitchen

20112012 2014 20152013

@ablythe

Page 13: ChefConf 2015 Cleaning up the Kitchen

2011 2014 20152013

2012

@ablythe

Page 14: ChefConf 2015 Cleaning up the Kitchen

http://www.pxleyes.com/photography-picture/50ccc14f7f012/Fork-Off.html@ablythe

Page 15: ChefConf 2015 Cleaning up the Kitchen

@ablythe

Page 16: ChefConf 2015 Cleaning up the Kitchen

ON

@ablythe

Page 17: ChefConf 2015 Cleaning up the Kitchen

January 2012 – Late March 2012

@ablythe

Page 18: ChefConf 2015 Cleaning up the Kitchen

2011 2012 2014 2015

2013

We 50+

@ablythe

Page 19: ChefConf 2015 Cleaning up the Kitchen

Which Chef Server?

What is the admin password?

How is this being backed up?Where did this cookbook come from?

Is this the original cookbook or a fork?

Why is this in production, but not in Staging?

Is this wiki page up to date with which Server to connect to?

Can we double bootstrap it?

@ablythe

Page 20: ChefConf 2015 Cleaning up the Kitchen

@ablythe

Page 21: ChefConf 2015 Cleaning up the Kitchen

@ablythe

Page 22: ChefConf 2015 Cleaning up the Kitchen

• Value Proposition of Chef:

– Infrastructure as Code

• Repeatable/Testable Deployments

• Consistency - Staging Like Production

@ablythe

Page 23: ChefConf 2015 Cleaning up the Kitchen

In Kansas City… One Night Only

• http://www.meetup.com/DevOps-Kansas-City/Adam Jacob!!

@ablythe

Page 24: ChefConf 2015 Cleaning up the Kitchen

Later that week…

OpsInfra

@ablythe

Page 25: ChefConf 2015 Cleaning up the Kitchen

Later that Month…

"I have never been in a room with that many system engineers that were all smiling, almost giddy. It was as if we all knew a secret."

@ablythe

Page 26: ChefConf 2015 Cleaning up the Kitchen

@ablythe

Page 27: ChefConf 2015 Cleaning up the Kitchen

Paul Edelhertz - Interview

• Senior VP Customer Ops – Chef

• Former CEO – Empath, Inc. (bought by Navigant)

@ablythe

Page 28: ChefConf 2015 Cleaning up the Kitchen

Paul Edelhertz - Interview

• Ability to persuade through writing is becoming a lost art

– Make the message short

– State exactly how I feel

– Different mediums but repeat the message over and over to many people

@ablythe

Page 29: ChefConf 2015 Cleaning up the Kitchen

Chef – “The List”

• Fuel the love of Chef

• Make it easy to be successful

• Give organizations reasons to buy

• Be their favorite company to work with

• Speed matters, be disruptive

@ablythe

Page 30: ChefConf 2015 Cleaning up the Kitchen

We Believe…• A minimal number of associates need to directly touch

nodes (approaching zero)• These tools matter – improve the lives of our users

• Tools should be hardened - so that we can find the root cause and drive corrective action

@ablythe

Page 31: ChefConf 2015 Cleaning up the Kitchen

Identity

• Tools Team

• Culture Team

@ablythe

Page 32: ChefConf 2015 Cleaning up the Kitchen

@ablythe

Page 33: ChefConf 2015 Cleaning up the Kitchen

@ablythe

Page 34: ChefConf 2015 Cleaning up the Kitchen

@ablythe

Page 35: ChefConf 2015 Cleaning up the Kitchen

Workflow

Step 1:Source Code

Step 2:?????

Step 3:Production(Profit!!!)

@ablythe

Page 36: ChefConf 2015 Cleaning up the Kitchen

@ablythe

Page 37: ChefConf 2015 Cleaning up the Kitchen

@ablythe

Page 38: ChefConf 2015 Cleaning up the Kitchen

@ablythe

Page 39: ChefConf 2015 Cleaning up the Kitchen

RFC’s

@ablythe

Page 40: ChefConf 2015 Cleaning up the Kitchen

Conway’s Law – Educate who you need to

2 classes * 15 attendess

* Re-delivering to 15-30/month

* Over 1 year__________________200+

https://learn.chef.io/index.html

@ablythe

Page 41: ChefConf 2015 Cleaning up the Kitchen

$20/Class@ablythe

Page 42: ChefConf 2015 Cleaning up the Kitchen

2011 2012 20152013

2014

Provide the Platform

@ablythe

Page 43: ChefConf 2015 Cleaning up the Kitchen

Migration Workshop

• 1st rule of teaching:

– Control all variables other than the concept you are focusing on

@ablythe

Page 44: ChefConf 2015 Cleaning up the Kitchen

Current State of Cookbooks• https://wiki.ucern.com/display/ChefEcosystem/Booksh

elf• 129 Cookbooks listed

– 87% of cookbooks have a metadata.rb. (112/129)– 79% of cookbooks have a cookbooks folder (102/129)– 56% of cookbooks have a Rakefile. (72/129)– 33% of cookbooks have a Berksfile. (42/129)– 30% of cookbooks have a Vagrantfile. (39/129)– 24% of cookbooks have a pom.xml. (31/129)

@ablythe

Page 45: ChefConf 2015 Cleaning up the Kitchen

Good Migrations

@ablythe

Page 46: ChefConf 2015 Cleaning up the Kitchen

Success Engineer

@ablythe

Page 47: ChefConf 2015 Cleaning up the Kitchen

Stephen Lauck

“Usually I show up and I am helping companies go from 0 to 20. You are clearly going from 40 to 60. Keep me in the loop, because I want to continue to be

part of your success. We all know the companies that will be able to move fast will be the companies that remain successful in the market.”

@ablythe

Page 48: ChefConf 2015 Cleaning up the Kitchen

• Push Jobs

• Analytics

• OpenStack

• SuperMarket

@ablythe

Page 49: ChefConf 2015 Cleaning up the Kitchen

Push Jobs

• Value: Orchestration

• Review: Overall positive, have-to-have feature for most of our teams

• Drawbacks: Push Jobs 1.x is not very mature or feature rich. We have seen issues with Networking.

@ablythe

Page 50: ChefConf 2015 Cleaning up the Kitchen

Analytics

• Value: Compliance/Auditing for non-coders

• Review: Interesting need to see latest version. We get asked about creating this functionality regularly… Future features look promising.

• Drawbacks: Early versions search slightly confusing. Filtering was not working right so very busy.

@ablythe

Page 51: ChefConf 2015 Cleaning up the Kitchen

OpenStack Integration

• Decision (At this point): Heat Templates

• Still really want to see chef-provisioning mature

@ablythe

Page 52: ChefConf 2015 Cleaning up the Kitchen

SuperMarket

• Value: Helps lock down our pipeline

• Review: Decided that we need a better pipeline first.

• Drawbacks: Early on was not ready for RHEL, hacked something together, but need to revisit. Authorization model not there for an Enterprise (CCLA not applicable).

@ablythe

Page 53: ChefConf 2015 Cleaning up the Kitchen

2011 2012 2014

20152013

March toward Continuous Integration/

Continuous Delivery@ablythe

Page 54: ChefConf 2015 Cleaning up the Kitchen

Where are we now?

• We are at about the 1 year mark of a focused well oiled system

• Have over 3000 Chef nodes involved with 100’s of separate systems/sub-systems

• Over 400 user accounts created on the server

@ablythe

Page 55: ChefConf 2015 Cleaning up the Kitchen

Wat ta do about CD?

• Jenkins – Workflow Plugin

• Go.cd

• Chef Delivery

• All the wonderful things we have seen at the booths here

@ablythe

Page 56: ChefConf 2015 Cleaning up the Kitchen

Blocker – Sensitive Flaguser 'zabbix' doshell '/sbin/nologin'comment 'Zabbix Monitoring System'supports manage_home: truenode.run_state['zabbix_password'] = SecureRandom.base64(36)password node.run_state['zabbix_password']gid 'zabbix' unless platform_family?('windows')sensitive trueaction [:create, :lock]end

end

@ablythe

Page 57: ChefConf 2015 Cleaning up the Kitchen

Centralized vs. Decentralized

@ablythe

Page 58: ChefConf 2015 Cleaning up the Kitchen

Open Source

• 6 associates contribute to core Chef

• Another 15 or so contribute to Cookbooks in SuperMarket

@ablythe

Page 59: ChefConf 2015 Cleaning up the Kitchen

2011 2012 2014 20152013

Journey With

@ablythe

Page 60: ChefConf 2015 Cleaning up the Kitchen

Lessons

• Be Patient/Be Hungry

• Look outward

– Ask Community

– Ask Chef

• You can’t please all the people

• Know your constraints and work within them

@ablythe

Page 61: ChefConf 2015 Cleaning up the Kitchen

Recommendations• Have a focused team - Configuration Management

does not just happen• Focus on the Workflow• Incent your community to work together• Define how your collective organization should use

roles/environments/data bags• Educate!!• Involve Your Friends at Chef

@ablythe

Page 62: ChefConf 2015 Cleaning up the Kitchen

What do you think?

@ablythe

[email protected]

http://www.slideshare.net/AaronBlythe/

Community room next session 3-4PM

@ablythe