Lessons using Ansible at J - Red Hat...Lessons using Ansible at J.Crew Oscar González Principal...

38
Lessons using Ansible at J.Crew Oscar González Principal Engineer at Sawyer Effect 06/28/2016

Transcript of Lessons using Ansible at J - Red Hat...Lessons using Ansible at J.Crew Oscar González Principal...

Page 1: Lessons using Ansible at J - Red Hat...Lessons using Ansible at J.Crew Oscar González Principal Engineer at Sawyer Effect 06/28/2016 The Beginning DIAGNOSIS Lengthy Deployment (Hours)

Lessons using Ansible at J.CrewOscar GonzálezPrincipal Engineer at Sawyer Effect06/28/2016

Page 2: Lessons using Ansible at J - Red Hat...Lessons using Ansible at J.Crew Oscar González Principal Engineer at Sawyer Effect 06/28/2016 The Beginning DIAGNOSIS Lengthy Deployment (Hours)

The Beginning

Page 3: Lessons using Ansible at J - Red Hat...Lessons using Ansible at J.Crew Oscar González Principal Engineer at Sawyer Effect 06/28/2016 The Beginning DIAGNOSIS Lengthy Deployment (Hours)

DIAGNOSIS

Lengthy Deployment (Hours)

Rube Goldberg Machine

Sisyphus effect

Page 4: Lessons using Ansible at J - Red Hat...Lessons using Ansible at J.Crew Oscar González Principal Engineer at Sawyer Effect 06/28/2016 The Beginning DIAGNOSIS Lengthy Deployment (Hours)

STOP!

Page 5: Lessons using Ansible at J - Red Hat...Lessons using Ansible at J.Crew Oscar González Principal Engineer at Sawyer Effect 06/28/2016 The Beginning DIAGNOSIS Lengthy Deployment (Hours)

DECISION TIME!

DevOps

Ansible

QA automation

Page 6: Lessons using Ansible at J - Red Hat...Lessons using Ansible at J.Crew Oscar González Principal Engineer at Sawyer Effect 06/28/2016 The Beginning DIAGNOSIS Lengthy Deployment (Hours)

ANSIBLE

Simplicity is beauty, agentless

Community and examples

Automate all things!

Page 7: Lessons using Ansible at J - Red Hat...Lessons using Ansible at J.Crew Oscar González Principal Engineer at Sawyer Effect 06/28/2016 The Beginning DIAGNOSIS Lengthy Deployment (Hours)

You never go full DevOps

Page 8: Lessons using Ansible at J - Red Hat...Lessons using Ansible at J.Crew Oscar González Principal Engineer at Sawyer Effect 06/28/2016 The Beginning DIAGNOSIS Lengthy Deployment (Hours)

¡Gracias! Any questions?

Page 9: Lessons using Ansible at J - Red Hat...Lessons using Ansible at J.Crew Oscar González Principal Engineer at Sawyer Effect 06/28/2016 The Beginning DIAGNOSIS Lengthy Deployment (Hours)

Lesson 1: You are not a unicorn

Page 10: Lessons using Ansible at J - Red Hat...Lessons using Ansible at J.Crew Oscar González Principal Engineer at Sawyer Effect 06/28/2016 The Beginning DIAGNOSIS Lengthy Deployment (Hours)

Lesson 1: You are not a unicorn!

Become a teaching organization

Training might take years of investment

Change your hiring/review process

Page 11: Lessons using Ansible at J - Red Hat...Lessons using Ansible at J.Crew Oscar González Principal Engineer at Sawyer Effect 06/28/2016 The Beginning DIAGNOSIS Lengthy Deployment (Hours)

Lesson 1: You are not a unicorn!

Long term solutions are better

Understand your infrastructure

Innovation is not only in tools

Page 12: Lessons using Ansible at J - Red Hat...Lessons using Ansible at J.Crew Oscar González Principal Engineer at Sawyer Effect 06/28/2016 The Beginning DIAGNOSIS Lengthy Deployment (Hours)

Lesson 2: Nash equilibrium

Page 13: Lessons using Ansible at J - Red Hat...Lessons using Ansible at J.Crew Oscar González Principal Engineer at Sawyer Effect 06/28/2016 The Beginning DIAGNOSIS Lengthy Deployment (Hours)

Lesson 2: Nash Equilibrium

Same goals

One team

Remove blockers

Page 14: Lessons using Ansible at J - Red Hat...Lessons using Ansible at J.Crew Oscar González Principal Engineer at Sawyer Effect 06/28/2016 The Beginning DIAGNOSIS Lengthy Deployment (Hours)

Lesson 3: The Dip

Page 15: Lessons using Ansible at J - Red Hat...Lessons using Ansible at J.Crew Oscar González Principal Engineer at Sawyer Effect 06/28/2016 The Beginning DIAGNOSIS Lengthy Deployment (Hours)

Lesson 3: The Dip

Stay calm

Avoid toxicity

Patience and Empathy

Page 16: Lessons using Ansible at J - Red Hat...Lessons using Ansible at J.Crew Oscar González Principal Engineer at Sawyer Effect 06/28/2016 The Beginning DIAGNOSIS Lengthy Deployment (Hours)

Lesson 4: Trust

Page 17: Lessons using Ansible at J - Red Hat...Lessons using Ansible at J.Crew Oscar González Principal Engineer at Sawyer Effect 06/28/2016 The Beginning DIAGNOSIS Lengthy Deployment (Hours)

Lesson 4: Trust

Trust your people

Trust between departments

Mistakes will be made

Page 18: Lessons using Ansible at J - Red Hat...Lessons using Ansible at J.Crew Oscar González Principal Engineer at Sawyer Effect 06/28/2016 The Beginning DIAGNOSIS Lengthy Deployment (Hours)

Lesson 5: Ansible Tower

Page 19: Lessons using Ansible at J - Red Hat...Lessons using Ansible at J.Crew Oscar González Principal Engineer at Sawyer Effect 06/28/2016 The Beginning DIAGNOSIS Lengthy Deployment (Hours)

Lesson 5: Ansible tower

Great reports

Delegation and security

tower-cli

Page 20: Lessons using Ansible at J - Red Hat...Lessons using Ansible at J.Crew Oscar González Principal Engineer at Sawyer Effect 06/28/2016 The Beginning DIAGNOSIS Lengthy Deployment (Hours)

Lesson 6: The Single Queue of Work

Page 21: Lessons using Ansible at J - Red Hat...Lessons using Ansible at J.Crew Oscar González Principal Engineer at Sawyer Effect 06/28/2016 The Beginning DIAGNOSIS Lengthy Deployment (Hours)

Lesson 6: The single queue of work

Different priorities

Budget unplanned work

Gather utilization metrics

Page 22: Lessons using Ansible at J - Red Hat...Lessons using Ansible at J.Crew Oscar González Principal Engineer at Sawyer Effect 06/28/2016 The Beginning DIAGNOSIS Lengthy Deployment (Hours)

Lesson 7: Use what you have at hand

Page 23: Lessons using Ansible at J - Red Hat...Lessons using Ansible at J.Crew Oscar González Principal Engineer at Sawyer Effect 06/28/2016 The Beginning DIAGNOSIS Lengthy Deployment (Hours)

Lesson 7: Use what you have at hand

RPMs with yum module

Use a single playbook

Use vagrant

Page 24: Lessons using Ansible at J - Red Hat...Lessons using Ansible at J.Crew Oscar González Principal Engineer at Sawyer Effect 06/28/2016 The Beginning DIAGNOSIS Lengthy Deployment (Hours)

Lesson 8: Bus factor

Page 25: Lessons using Ansible at J - Red Hat...Lessons using Ansible at J.Crew Oscar González Principal Engineer at Sawyer Effect 06/28/2016 The Beginning DIAGNOSIS Lengthy Deployment (Hours)

Lesson 8: Bus factor

Train a team, not a person

Knowledge base

Take vacations

Page 26: Lessons using Ansible at J - Red Hat...Lessons using Ansible at J.Crew Oscar González Principal Engineer at Sawyer Effect 06/28/2016 The Beginning DIAGNOSIS Lengthy Deployment (Hours)

Lesson 9: You are a tech company

Page 27: Lessons using Ansible at J - Red Hat...Lessons using Ansible at J.Crew Oscar González Principal Engineer at Sawyer Effect 06/28/2016 The Beginning DIAGNOSIS Lengthy Deployment (Hours)

Lesson 9: You ARE a tech company

Changes in devices

Changes in the market

IT is a core competency

Page 28: Lessons using Ansible at J - Red Hat...Lessons using Ansible at J.Crew Oscar González Principal Engineer at Sawyer Effect 06/28/2016 The Beginning DIAGNOSIS Lengthy Deployment (Hours)

Lesson 10: Have fun

Page 29: Lessons using Ansible at J - Red Hat...Lessons using Ansible at J.Crew Oscar González Principal Engineer at Sawyer Effect 06/28/2016 The Beginning DIAGNOSIS Lengthy Deployment (Hours)

Lesson 10: Have fun

Bot to create VM’s

Promote new projects

Influence other teams

Page 30: Lessons using Ansible at J - Red Hat...Lessons using Ansible at J.Crew Oscar González Principal Engineer at Sawyer Effect 06/28/2016 The Beginning DIAGNOSIS Lengthy Deployment (Hours)

Results

Page 31: Lessons using Ansible at J - Red Hat...Lessons using Ansible at J.Crew Oscar González Principal Engineer at Sawyer Effect 06/28/2016 The Beginning DIAGNOSIS Lengthy Deployment (Hours)

RESULTS

Finished crewbot, self service

Deploy used to take hours at night

Takes 5 minutes now

Page 32: Lessons using Ansible at J - Red Hat...Lessons using Ansible at J.Crew Oscar González Principal Engineer at Sawyer Effect 06/28/2016 The Beginning DIAGNOSIS Lengthy Deployment (Hours)

RESULTS

7 new prod servers in 5 minutes

Ops cost down by 20%

Changes took 2 months

Page 33: Lessons using Ansible at J - Red Hat...Lessons using Ansible at J.Crew Oscar González Principal Engineer at Sawyer Effect 06/28/2016 The Beginning DIAGNOSIS Lengthy Deployment (Hours)

RESULTS

Increase in productivity

Support and training mindset changed

Page 34: Lessons using Ansible at J - Red Hat...Lessons using Ansible at J.Crew Oscar González Principal Engineer at Sawyer Effect 06/28/2016 The Beginning DIAGNOSIS Lengthy Deployment (Hours)

AUTOMATED RESULTS

Crewbot Saved 750,000 USD so far

Page 35: Lessons using Ansible at J - Red Hat...Lessons using Ansible at J.Crew Oscar González Principal Engineer at Sawyer Effect 06/28/2016 The Beginning DIAGNOSIS Lengthy Deployment (Hours)

The future!

Page 36: Lessons using Ansible at J - Red Hat...Lessons using Ansible at J.Crew Oscar González Principal Engineer at Sawyer Effect 06/28/2016 The Beginning DIAGNOSIS Lengthy Deployment (Hours)

THE FUTURE

We are adding two more brands

Upgrade to ansible 2.1

Distribute roles across the company

Page 37: Lessons using Ansible at J - Red Hat...Lessons using Ansible at J.Crew Oscar González Principal Engineer at Sawyer Effect 06/28/2016 The Beginning DIAGNOSIS Lengthy Deployment (Hours)

IN SUMMARY

Use Ansible, ADAPT and have fun

Page 38: Lessons using Ansible at J - Red Hat...Lessons using Ansible at J.Crew Oscar González Principal Engineer at Sawyer Effect 06/28/2016 The Beginning DIAGNOSIS Lengthy Deployment (Hours)