BRITISH ARMY A JOURNEY TO DEVOPS IN THE - Red Hat · Secure Comms. MY JOURNEY TO “DEVOPS” ......

38
A JOURNEY TO DEVOPS IN THE BRITISH ARMY Lessons Learnt for Successful Automation Aidan Beeson Linux Architect (Contractor) May 2018

Transcript of BRITISH ARMY A JOURNEY TO DEVOPS IN THE - Red Hat · Secure Comms. MY JOURNEY TO “DEVOPS” ......

Page 1: BRITISH ARMY A JOURNEY TO DEVOPS IN THE - Red Hat · Secure Comms. MY JOURNEY TO “DEVOPS” ... IAS ‘DEVOPS’ EXPECTATIONS Empowering users (developers and operations) Reducing

A JOURNEY TO DEVOPS IN THE BRITISH ARMYLessons Learnt for Successful Automation

Aidan BeesonLinux Architect (Contractor)May 2018

Page 2: BRITISH ARMY A JOURNEY TO DEVOPS IN THE - Red Hat · Secure Comms. MY JOURNEY TO “DEVOPS” ... IAS ‘DEVOPS’ EXPECTATIONS Empowering users (developers and operations) Reducing

https://www.flickr.com/photos/uk-forces-afghanistan

The plan…

Page 3: BRITISH ARMY A JOURNEY TO DEVOPS IN THE - Red Hat · Secure Comms. MY JOURNEY TO “DEVOPS” ... IAS ‘DEVOPS’ EXPECTATIONS Empowering users (developers and operations) Reducing

Information Application Services (IAS)

Page 4: BRITISH ARMY A JOURNEY TO DEVOPS IN THE - Red Hat · Secure Comms. MY JOURNEY TO “DEVOPS” ... IAS ‘DEVOPS’ EXPECTATIONS Empowering users (developers and operations) Reducing

Military Civil Servants IT Contractors

200+ Services

Public

OfficialSensitive

Secret

3 SecurityDomains

Army, Navy& Air Force

100+ Staff

Page 5: BRITISH ARMY A JOURNEY TO DEVOPS IN THE - Red Hat · Secure Comms. MY JOURNEY TO “DEVOPS” ... IAS ‘DEVOPS’ EXPECTATIONS Empowering users (developers and operations) Reducing

Training Recruits Families Injured

Regular Reserves Veterans

~10

~300,000

Page 6: BRITISH ARMY A JOURNEY TO DEVOPS IN THE - Red Hat · Secure Comms. MY JOURNEY TO “DEVOPS” ... IAS ‘DEVOPS’ EXPECTATIONS Empowering users (developers and operations) Reducing

Public Cloud Official SensitivePrivate Cloud

SecretPrivate Cloud

Army Hosting Environments

Page 7: BRITISH ARMY A JOURNEY TO DEVOPS IN THE - Red Hat · Secure Comms. MY JOURNEY TO “DEVOPS” ... IAS ‘DEVOPS’ EXPECTATIONS Empowering users (developers and operations) Reducing

Operating Systems:

Development:

Virtualization:

Page 8: BRITISH ARMY A JOURNEY TO DEVOPS IN THE - Red Hat · Secure Comms. MY JOURNEY TO “DEVOPS” ... IAS ‘DEVOPS’ EXPECTATIONS Empowering users (developers and operations) Reducing

ERP

HR

Logistics

CRM

LegalPlanning

Geo Mapping

Data Warehouse

Training

Analytics

Hosting Environment

AccountingSecureComms

Page 9: BRITISH ARMY A JOURNEY TO DEVOPS IN THE - Red Hat · Secure Comms. MY JOURNEY TO “DEVOPS” ... IAS ‘DEVOPS’ EXPECTATIONS Empowering users (developers and operations) Reducing

MY JOURNEY TO “DEVOPS”

Page 10: BRITISH ARMY A JOURNEY TO DEVOPS IN THE - Red Hat · Secure Comms. MY JOURNEY TO “DEVOPS” ... IAS ‘DEVOPS’ EXPECTATIONS Empowering users (developers and operations) Reducing

Year 2000 – “UNICOM” Project

Page 11: BRITISH ARMY A JOURNEY TO DEVOPS IN THE - Red Hat · Secure Comms. MY JOURNEY TO “DEVOPS” ... IAS ‘DEVOPS’ EXPECTATIONS Empowering users (developers and operations) Reducing

UNICOM Server

Lovely Screen

All Mod-Cons

Very Beige

Page 12: BRITISH ARMY A JOURNEY TO DEVOPS IN THE - Red Hat · Secure Comms. MY JOURNEY TO “DEVOPS” ... IAS ‘DEVOPS’ EXPECTATIONS Empowering users (developers and operations) Reducing

Typical UNICOM System Administrator

• Soldier in the Army

• Not necessarily technical

• Part time Sys-Admin

“Heather”

Page 13: BRITISH ARMY A JOURNEY TO DEVOPS IN THE - Red Hat · Secure Comms. MY JOURNEY TO “DEVOPS” ... IAS ‘DEVOPS’ EXPECTATIONS Empowering users (developers and operations) Reducing

You also have to deal with situations with an “Army” twist to them.

Page 14: BRITISH ARMY A JOURNEY TO DEVOPS IN THE - Red Hat · Secure Comms. MY JOURNEY TO “DEVOPS” ... IAS ‘DEVOPS’ EXPECTATIONS Empowering users (developers and operations) Reducing

Tip #1:

KEEP IT SIMPLE(for the end user)

Page 15: BRITISH ARMY A JOURNEY TO DEVOPS IN THE - Red Hat · Secure Comms. MY JOURNEY TO “DEVOPS” ... IAS ‘DEVOPS’ EXPECTATIONS Empowering users (developers and operations) Reducing

Complexity + Stress = Misunderstandings

Page 16: BRITISH ARMY A JOURNEY TO DEVOPS IN THE - Red Hat · Secure Comms. MY JOURNEY TO “DEVOPS” ... IAS ‘DEVOPS’ EXPECTATIONS Empowering users (developers and operations) Reducing

Year 2015 – Army HQ DevOps

Page 17: BRITISH ARMY A JOURNEY TO DEVOPS IN THE - Red Hat · Secure Comms. MY JOURNEY TO “DEVOPS” ... IAS ‘DEVOPS’ EXPECTATIONS Empowering users (developers and operations) Reducing

Automation Framework

• OS Patching• Platform Installs• Oracle Patching• Oracle Upgrades

Page 18: BRITISH ARMY A JOURNEY TO DEVOPS IN THE - Red Hat · Secure Comms. MY JOURNEY TO “DEVOPS” ... IAS ‘DEVOPS’ EXPECTATIONS Empowering users (developers and operations) Reducing

IAS ‘DEVOPS’ EXPECTATIONSEmpowering users (developers and operations)

Reducing the lead time to get platforms up and running

Removing the dependency on lots of different people to build a platform

Enabling consistency across domains

Reducing system downtime

Simplifying processes and, therefore, documentation

Page 19: BRITISH ARMY A JOURNEY TO DEVOPS IN THE - Red Hat · Secure Comms. MY JOURNEY TO “DEVOPS” ... IAS ‘DEVOPS’ EXPECTATIONS Empowering users (developers and operations) Reducing

Tip #2:

LEGACY CAN BE “DEVOPS’d”(Don’t throw away existing code or platforms)

Page 20: BRITISH ARMY A JOURNEY TO DEVOPS IN THE - Red Hat · Secure Comms. MY JOURNEY TO “DEVOPS” ... IAS ‘DEVOPS’ EXPECTATIONS Empowering users (developers and operations) Reducing

THE DEVOPS PLANTOP SECRET

TOP SECRET

Users interact with Ansible.

Ansible layer interacts with existing scripts and extended to fully automate jobs.

DevOps Utopia!

Page 21: BRITISH ARMY A JOURNEY TO DEVOPS IN THE - Red Hat · Secure Comms. MY JOURNEY TO “DEVOPS” ... IAS ‘DEVOPS’ EXPECTATIONS Empowering users (developers and operations) Reducing

Started with “pure” Ansible

Quickly decided we needed a GUI

Page 22: BRITISH ARMY A JOURNEY TO DEVOPS IN THE - Red Hat · Secure Comms. MY JOURNEY TO “DEVOPS” ... IAS ‘DEVOPS’ EXPECTATIONS Empowering users (developers and operations) Reducing

Tip #3:

USE ANSIBLE TOWER FROM THE START(If you think you’ll need a GUI)

Page 23: BRITISH ARMY A JOURNEY TO DEVOPS IN THE - Red Hat · Secure Comms. MY JOURNEY TO “DEVOPS” ... IAS ‘DEVOPS’ EXPECTATIONS Empowering users (developers and operations) Reducing

https://www.ansible.com/products/tower https://github.com/ansible/awx

Supported by Red Hat

Open Source!

CloudForms (or “ManageIQ” for Open Source version)

Page 24: BRITISH ARMY A JOURNEY TO DEVOPS IN THE - Red Hat · Secure Comms. MY JOURNEY TO “DEVOPS” ... IAS ‘DEVOPS’ EXPECTATIONS Empowering users (developers and operations) Reducing

Operations

Documentation

Installation Media

Config Files

Installation ScriptsCore Services

Page 25: BRITISH ARMY A JOURNEY TO DEVOPS IN THE - Red Hat · Secure Comms. MY JOURNEY TO “DEVOPS” ... IAS ‘DEVOPS’ EXPECTATIONS Empowering users (developers and operations) Reducing

Operations

Service CatalogueDev / Test

Page 26: BRITISH ARMY A JOURNEY TO DEVOPS IN THE - Red Hat · Secure Comms. MY JOURNEY TO “DEVOPS” ... IAS ‘DEVOPS’ EXPECTATIONS Empowering users (developers and operations) Reducing

KEY COMPONENTS

SCM – Playbook Code

Hypervisor – VM Control

Artefact Server – Software ISOs

Password Management

MatterMost – Job Status Info

Service Catalogue – Virtual Hardware provisioning

Page 27: BRITISH ARMY A JOURNEY TO DEVOPS IN THE - Red Hat · Secure Comms. MY JOURNEY TO “DEVOPS” ... IAS ‘DEVOPS’ EXPECTATIONS Empowering users (developers and operations) Reducing

Tip #4:

ANSIBLE TOWERCLI(Because we love the command line)

Page 28: BRITISH ARMY A JOURNEY TO DEVOPS IN THE - Red Hat · Secure Comms. MY JOURNEY TO “DEVOPS” ... IAS ‘DEVOPS’ EXPECTATIONS Empowering users (developers and operations) Reducing

Our Ansible Tower installation and configuration is

…Software Installation, Projects, Inventories, Job Templates, Access Controls, Surveys, Credentials…

100%Software Defined

Page 29: BRITISH ARMY A JOURNEY TO DEVOPS IN THE - Red Hat · Secure Comms. MY JOURNEY TO “DEVOPS” ... IAS ‘DEVOPS’ EXPECTATIONS Empowering users (developers and operations) Reducing

Tip #5:

TOWER JOB SURVEYS(Keeping It Simple)

Page 30: BRITISH ARMY A JOURNEY TO DEVOPS IN THE - Red Hat · Secure Comms. MY JOURNEY TO “DEVOPS” ... IAS ‘DEVOPS’ EXPECTATIONS Empowering users (developers and operations) Reducing

JOB SURVEYS

Drop downs or Pick Lists limit what users can select

Page 31: BRITISH ARMY A JOURNEY TO DEVOPS IN THE - Red Hat · Secure Comms. MY JOURNEY TO “DEVOPS” ... IAS ‘DEVOPS’ EXPECTATIONS Empowering users (developers and operations) Reducing

User promotes a releaseusing a Tower job.

Playbook scans theartefact server for

changes

Survey is regeneratedwith new options againstall relevant job templates

AUTOMATIC SURVEY REFRESH

Page 32: BRITISH ARMY A JOURNEY TO DEVOPS IN THE - Red Hat · Secure Comms. MY JOURNEY TO “DEVOPS” ... IAS ‘DEVOPS’ EXPECTATIONS Empowering users (developers and operations) Reducing

MISSION DEBRIEF

Page 33: BRITISH ARMY A JOURNEY TO DEVOPS IN THE - Red Hat · Secure Comms. MY JOURNEY TO “DEVOPS” ... IAS ‘DEVOPS’ EXPECTATIONS Empowering users (developers and operations) Reducing

KEY TAKE-AWAYS

Keep It Simple

Recycle existing automation code

Decide early on if you need a GUI

Automate GUI configuration

Give users the power, but retain control

Page 34: BRITISH ARMY A JOURNEY TO DEVOPS IN THE - Red Hat · Secure Comms. MY JOURNEY TO “DEVOPS” ... IAS ‘DEVOPS’ EXPECTATIONS Empowering users (developers and operations) Reducing

ACHIEVEMENTS

Development, Test, Pre-Production and Production all aligned

All major new Linux based software deployed using Tower

Zero patch related downtime during working hours

Documentation complexity reduced

Happy Users!

Page 35: BRITISH ARMY A JOURNEY TO DEVOPS IN THE - Red Hat · Secure Comms. MY JOURNEY TO “DEVOPS” ... IAS ‘DEVOPS’ EXPECTATIONS Empowering users (developers and operations) Reducing

I’m seriously impressed at how quickly and smoothly you guys are able to get the Oracle CPUs rolled

out across all the environmentsIAS Lead DBA

Page 36: BRITISH ARMY A JOURNEY TO DEVOPS IN THE - Red Hat · Secure Comms. MY JOURNEY TO “DEVOPS” ... IAS ‘DEVOPS’ EXPECTATIONS Empowering users (developers and operations) Reducing

‘Legacy’ no longer refers to the platform itself, but the way you

deliver and maintain the platform

“”

Page 37: BRITISH ARMY A JOURNEY TO DEVOPS IN THE - Red Hat · Secure Comms. MY JOURNEY TO “DEVOPS” ... IAS ‘DEVOPS’ EXPECTATIONS Empowering users (developers and operations) Reducing

https://www.ansible.com/videos-ansiblefest-london-2017

Page 38: BRITISH ARMY A JOURNEY TO DEVOPS IN THE - Red Hat · Secure Comms. MY JOURNEY TO “DEVOPS” ... IAS ‘DEVOPS’ EXPECTATIONS Empowering users (developers and operations) Reducing

THANK YOUplus.google.com/+RedHat

linkedin.com/company/red-hat

youtube.com/user/RedHatVideos

facebook.com/redhatinc

twitter.com/RedHat