HP Presents: Journey to Continuous Delivery Inside HP Using GitHub Enterprise, Chef, and ChatOps -...

28

Transcript of HP Presents: Journey to Continuous Delivery Inside HP Using GitHub Enterprise, Chef, and ChatOps -...

Page 1: HP Presents: Journey to Continuous Delivery Inside HP Using GitHub Enterprise, Chef, and ChatOps - ChefConf 2015
Page 2: HP Presents: Journey to Continuous Delivery Inside HP Using GitHub Enterprise, Chef, and ChatOps - ChefConf 2015

HP Presents: Journey to Continuous Delivery

Andy Claiborne & Jared Smartt, April 1st, 2015

Page 3: HP Presents: Journey to Continuous Delivery Inside HP Using GitHub Enterprise, Chef, and ChatOps - ChefConf 2015

Andy Claiborne@AndyClaiborneveloandy

Jared Smartt@JSmartt1

Infrastructure Automation COE, HP

Page 4: HP Presents: Journey to Continuous Delivery Inside HP Using GitHub Enterprise, Chef, and ChatOps - ChefConf 2015

You’re waiting for a train. A train that will take you far away. You know where you hope this train will take you, but you don’t know for sure. But it doesn’t matter, because we’ll be together.

This is the story of our journey to Continuous Delivery

Page 5: HP Presents: Journey to Continuous Delivery Inside HP Using GitHub Enterprise, Chef, and ChatOps - ChefConf 2015

HP is huge

Page 6: HP Presents: Journey to Continuous Delivery Inside HP Using GitHub Enterprise, Chef, and ChatOps - ChefConf 2015

Let’s zoom in to…

Page 7: HP Presents: Journey to Continuous Delivery Inside HP Using GitHub Enterprise, Chef, and ChatOps - ChefConf 2015

Just our lab

Page 8: HP Presents: Journey to Continuous Delivery Inside HP Using GitHub Enterprise, Chef, and ChatOps - ChefConf 2015

About 220 engineers working on about a

dozen projects

Page 9: HP Presents: Journey to Continuous Delivery Inside HP Using GitHub Enterprise, Chef, and ChatOps - ChefConf 2015

A year ago

Page 10: HP Presents: Journey to Continuous Delivery Inside HP Using GitHub Enterprise, Chef, and ChatOps - ChefConf 2015

What we did about it

ChatOps

GitHub Enterprise

Continuous Delivery

Infrastructure as

code

Page 11: HP Presents: Journey to Continuous Delivery Inside HP Using GitHub Enterprise, Chef, and ChatOps - ChefConf 2015

How We Built It Out

Page 12: HP Presents: Journey to Continuous Delivery Inside HP Using GitHub Enterprise, Chef, and ChatOps - ChefConf 2015

Strategy

• Find champions within organization• Small de-risking experiments• Roll out change incrementally• Continually demonstrate value• Listen to teams• Pick appropriate battles

Page 13: HP Presents: Journey to Continuous Delivery Inside HP Using GitHub Enterprise, Chef, and ChatOps - ChefConf 2015

GitHub Pull Request Builder

Plug-in

1. Let’s Collaborate!

Page 14: HP Presents: Journey to Continuous Delivery Inside HP Using GitHub Enterprise, Chef, and ChatOps - ChefConf 2015

2. Jenkins: Not just for PRs anymore

Sinatra App

Centralized logic of what to call when we receive an event

GitHub API

Page 15: HP Presents: Journey to Continuous Delivery Inside HP Using GitHub Enterprise, Chef, and ChatOps - ChefConf 2015

2. Jenkins: Not just for PRs anymore

Chef Server

Sinatra App

Centralized logic of what to call when we receive an event

GitHub API

System

sudo chef-client

Page 16: HP Presents: Journey to Continuous Delivery Inside HP Using GitHub Enterprise, Chef, and ChatOps - ChefConf 2015

3. Deployments API

Chef Server

Page 17: HP Presents: Journey to Continuous Delivery Inside HP Using GitHub Enterprise, Chef, and ChatOps - ChefConf 2015

What’s Awesome: Automation stays out of developers’ way

Projects can pick-and-choose what to adopt

Page 18: HP Presents: Journey to Continuous Delivery Inside HP Using GitHub Enterprise, Chef, and ChatOps - ChefConf 2015

What a Chef recipe pull request looks like to a developer

Page 19: HP Presents: Journey to Continuous Delivery Inside HP Using GitHub Enterprise, Chef, and ChatOps - ChefConf 2015

What a Deployment looks like to a developer

Page 20: HP Presents: Journey to Continuous Delivery Inside HP Using GitHub Enterprise, Chef, and ChatOps - ChefConf 2015

Started with low-risk, low-visibility projects

Demonstrated value: • Iterate faster with better visibility• Better team collaboration with less time wasted• Able to fix problems faster • Systems and deployments are consistent

Now using these methods to develop HP Support Automation 2.0 – Large, high-visibility project

Pattern used for a bunch of different projects

Page 21: HP Presents: Journey to Continuous Delivery Inside HP Using GitHub Enterprise, Chef, and ChatOps - ChefConf 2015

Add system provisioning to pipeline

Move more teams on boardImproving existing automation

Still more to do internally in my lab

Page 22: HP Presents: Journey to Continuous Delivery Inside HP Using GitHub Enterprise, Chef, and ChatOps - ChefConf 2015

Our lab now

Page 23: HP Presents: Journey to Continuous Delivery Inside HP Using GitHub Enterprise, Chef, and ChatOps - ChefConf 2015

Exciting times in my lab, but zooming out…

Page 24: HP Presents: Journey to Continuous Delivery Inside HP Using GitHub Enterprise, Chef, and ChatOps - ChefConf 2015

Challenges in the neighborhood: Isolated GitHub Enterprise instance

Page 25: HP Presents: Journey to Continuous Delivery Inside HP Using GitHub Enterprise, Chef, and ChatOps - ChefConf 2015

Exciting times at HP: Continuous Delivery Pilot

New policies emphasize enabling dev teams using whatever delivery pipeline works for them. Focus on API for shared

reporting/compliance.

Page 26: HP Presents: Journey to Continuous Delivery Inside HP Using GitHub Enterprise, Chef, and ChatOps - ChefConf 2015

The situation before my lab’s transformation isn’t atypical of large customers. A lot of large companies are facing the same need to migrate to a culture of continuous delivery

New HP Datacenter Infrastructure Automation COE team formed to help HP Datacenter Care customers through their own Continuous Delivery journeys

Jared and Andy are just some of the team members “on the ground” helping HP customers deliver value faster all day, every day.

Exciting time to be an HP customer

Page 27: HP Presents: Journey to Continuous Delivery Inside HP Using GitHub Enterprise, Chef, and ChatOps - ChefConf 2015
Page 28: HP Presents: Journey to Continuous Delivery Inside HP Using GitHub Enterprise, Chef, and ChatOps - ChefConf 2015