How Capital One Automates Automation Tools
Capital One shares their strategy for automation with immutable Jenkins, including infrastructure as code and constant testing.
Join the DZone community and get the full member experience.Join For Free
listening to his talk, it seems like george parris and his team at capital one aren’t keeping “banker’s hours.” george is a master software engineer, retail bank devops at capital one. george gave a talk, entitled meta infrastructure as code: how capital one automates our automation tools with an immutable jenkins, describing how they automated the devops pipeline for their online account opening project for capital one, a major bank in the united states. of course, there is a lot to learn from their experience.
george started by pointing out that software development has evolved - coming a long way even in just the last few years. developers now design, build, test, and deploy, and they no longer build out physical infrastructure - they live in the cloud. waterfall development is rapidly being replaced by agile, infrastructure as code, and devops practices.
where we see these technologies and methodologies implemented, it operations teams are acting more like developers, designing how we launch our applications. at the same time, development teams are more responsible for uptime, performance, and usability, and operations and development work within the same tribe.
george used the capital one online account opening project to discuss how they automate their automation tools - now a standard practice within their implementation methodology.
for starters, george discussed how capital one deploys code (hint: they aren’t building new data centers). they are primarily on aws, they use configuration management systems to install and run their applications, and they, “test, test, test, at all levels.” pervasive throughout the system is immutability - that is, once created, the state of an object cannot change. as an example, if you need new server configurations, you create a new server and test it outside of production first.
they use the continuous integration/continuous delivery model, so anyone working on code can contribute to the repositories that, in turn, initiate testing. deployments are moved away from the scheduled release pattern. george noted that, because they are a bank, regulations prevent their developers from initiating a production change. they use apis with the product owners to automatically create tickets, and then product owners accept tickets, making the change in the production code. while this won’t apply to most environments, he brought it up to demonstrate how you can implement continuous delivery within these rules.
within all of this is the importance of automation. george outlined their four basic principles of automation and the key aspects of each:
principle #1 - infrastructure as code: they use aws for hosting and everything is in a cloud formation template, which is a way to describe your infrastructure using code. aws now allows you to use cfts to pass variable between stacks. using code, every change can be tested first, and they can easily spin-up environments.
principle #2 - configuration as code: this is also known as configuration management systems (they use chef and ansible). there are no central servers, changes are version controlled, and they use “innersourcing” for changes. for instance, if someone needs a change to a plugin, they can branch, update, and create a pull request.
principle #3 - immutability: not allowing changes to servers once deployed prevents “special snowflakes” and regressions. any changes are made in code and traverse a testing pipeline and code review before being deployed. this avoids what we all have experienced - the server that someone, who is no longer around, set up and tweaked differently than anything else and didn’t document what was done.
principle #4 - backup and restore strategy: a backup is only as good as your restore strategy. you know the rest.
george also dives into how they do continuous delivery/continuous integration in his talk, which you can watch online here.
if you missed any of the other 30-minute long presentations from all day devops, they are easy to find and available free-of-charge. finally, be sure to register you and the rest of your team for the 2017 all day devops conference. this year’s event will offer 96 practitioner-led sessions (no vendor pitches allowed). it’s all free, online on october 24th.
Published at DZone with permission of Derek Weeks, DZone MVB. See the original article here.
Opinions expressed by DZone contributors are their own.