Infrastructure as Code - The Key to DevOps
Join the DZone community and get the full member experience.Join For Free
devops is not about the tools
that’s true, in the same way that agile is not about the tools either, it’s a set of ideas, concepts, best practices,…
how can i successfully implement it?
tools can enable change in behavior and eventually change culture [patrick debois]
the same way the guttemberg printer was a tool that enabled a cultural change, or that agile development wouldn’t be possible without continuous integration servers , devops relies on some tools to implement its principles.
unfortunately, the same way everyone thinks of themselves as being intelligent enough, and every tool out there is magically cloud enabled, now every tool claims to be devops .
however, there is agreement that tools that allow us to deal with infrastructure as code are key on implementing devops concepts.
it’s all been invented already, now it’s standardized with tools like chef or puppet . before, you could write your own scripts to automate server installation, configuration,… but everyone would do it their very own way.
now there’s some common language used by puppet or by chef, that allows to share and reuse configuration as modules or recipes .
infrastructure as code, a key concept
the concept that infrastructure should be treated as code is really powerful. server configuration, packages installed, relationships with other servers,… should be modeled with code to be automated and have a predictable outcome, removing manual steps prone to errors. doesn’t sound bad, does it?
but new solutions bring new challenges, and when infrastructure is code we face the same problems faced by developers .
- what version of the infrastructure are we using in production?
- how can we ensure that when an issue is found it gets fixed and redeployed?
- how can we test the infrastructure as we develop it?
that’s why when dealing with infrastructure as code we should follow development best practices .
for instance we can (and should!)
- tag, branch and release the code that define our servers.
- have a lifecycle that covers different stages through the infrastructure code, ie. dev, qa, production.
- continuously test our infrastructure as we make changes.
Opinions expressed by DZone contributors are their own.