devops with chef and azure
TRANSCRIPT
Who Am I? Ma6 Stra6on Solu?ons Architect at CHEF SoDware, Inc Host of Arrested DevOps podcast DevOpsDays Chicago organizer Previously sysadmin, Tech Ops Director, Azure V-‐TSP, infrastructure consultant, yada yada yada
“DevOps is a cultural and professional movement. Period. That’s it… There’s no technology, you can’t patent ‘devops’.” – Adam Jacob, Velocity 2010
DevOps can be summarized with CAMS – Culture, Automa?on, Measurement, and Sharing. All are important.
Managing complexity – two worlds. Ops starts by making with the clicky clicky, and dev starts wri?ng some code
Hey, let’s put our notes into a wiki and start sharing with the rest of ops! And devs start sharing with each other via version control.
Golden images are not the answer. Gold is heavy. It’s hard to transport. Its hard to mold. And easy to lose configura?on detail.
This won’t scale or let you move fast. There’s no feedback loop from ops to dev, and the devs aren’t coordina?ng with ops
What is Chef? Open Source Framework for managing complexity Declara?ve language for describing & configuring infrastructure An awesome community of professionals A fast-‐growing company based in Sea6le, WA
How does Chef work? Ensures desired state by con?nually tes?ng and repairing individual resources in the system You compose policies using a series of simple declara?ons The Chef client fetches those policies from a central server and applies them to the local machine The state of the machine is recorded and sent back to a database, where it is indexed for search, repor?ng, and audit.
Infrastructure as Cod in a nutshell: Define Policy That Describes Your Infrastructure An Autonomous Agent Implements Your Policy Policy Enforcement is Con?nuous and Safe Automate All Your Infrastructure at Scale
Build Anything! Simple internal applica?ons Complex external applica?ons Worksta?ons Hadoop clusters IaaS infrastructure PaaS infrastructure SaaS applica?ons Storage systems You name it
And manage it simply: Automa?cally reconfigure everything Linux, Windows, Unixes, BSDs Load balancers Metrics collec?on systems Monitoring systems Cloud migra?ons become trivial
DevOps is a Two-‐Way Street It’s great when developers care about Up?me! Scaling! Deployment! Put them on call! etc. etc. etc.
“Old” SoDware Development Workflow Write some code <ad-‐hoc verifica?on here> Go to pre-‐produc?on <ad-‐hoc verifica?on here> Go to produc?on ProducHon failure
Modern SoDware Development workflow Write some code Write and run some unit tests Go to pre-‐produc?on Run some integraHon/acceptance tests Go to produc?on Lowered chance of producHon failure
Old Chef Cookbook Workflow Write some cookbook code <ad-‐hoc verifica?on here> Go to pre-‐produc?on <ad-‐hoc verifica?on here Go to produc?on Whoops, broke producHon
New Chef Cookbook Workflow Write some cookbook code Check for code correctness Write and run some unit tests Go to pre-‐produc?on Run some integraHon tests Go to produc?on
CONTACTS AND LINKS • Tonight’s code -‐ h6ps://github.com/ma6stra6on/ alm-‐demo-‐repo • [email protected] • @ma6stra6on on Twi6er • h6p://arresteddevops.com • h6p://learn.chef.io