As an Amazon Associate I earn from qualifying purchases from

Utilizing CI/CD Pipelines for Infrastructure Configuration and Administration

Steady Integration/Steady Supply, or Steady Deployment, pipelines have been used within the software program growth business for years. For many groups, the times of manually taking supply code and manifest recordsdata and compiling them to create binaries or executable recordsdata after which manually distributing and putting in these purposes are lengthy gone. In an effort to automate the construct course of and distribution of software program in addition to carry out automated testing, the business has constantly developed in direction of extra complete pipelines. Relying on how a lot of the software program growth course of is automated, pipelines could be categorized into completely different teams and phases:

  •  Steady Integration is the follow of integrating code that’s being produced by builders. On medium to massive software program tasks is widespread to have a number of builders and even a number of groups of builders work on completely different options or elements on the identical time. Taking all this code and bringing it to a central location or repository is usually accomplished utilizing a git based mostly model management system. When the code is merged right into a department on an hourly, day by day, weekly or regardless of the cadence of the event staff is, easy to complicated assessments could be setup to validate the modifications and flush out potential bugs at a really early stage. When carried out in an automatic style, all these steps consist in a steady integration pipeline.
  • Steady Supply takes the pipeline to the following stage by including software program constructing and launch creation and supply. After the software program has been built-in and examined within the steady integration a part of the pipeline, steady supply provides further testing and has the choice to deploy the newly constructed software program packages in a sandbox or stage setting for shut monitoring and extra person testing. Just like steady integration, all steps carried out within the steady supply a part of the pipeline are automated.
  • Steady Deployment takes the pipeline to its subsequent and final stage. By this stage, the applying has been built-in, examined, constructed, examined some extra, deployed in a stage setting and examined much more. The continual deployment stage takes care of deploying the applying within the manufacturing setting. A number of completely different deployment methods can be found with completely different danger components, value issues and complexity. For instance, within the primary deployment mannequin, all software nodes are up to date on the identical time to the brand new model. Whereas this deployment mannequin is easy it’s also the riskiest, it’s not outage-proof and doesn’t present simple rollbacks. The rolling deployment mannequin because the identify suggests takes an incremental strategy to updating the applying nodes. A sure variety of nodes are up to date in batches. This mannequin offers simpler rollback, it’s much less dangerous than the fundamental deployment however on the identical time requires that the applying runs with each new and outdated code on the identical time. In purposes that use the micro-services structure, this final requirement should be given further consideration. A number of different deployment fashions can be found, together with canary, blue/inexperienced, A/B, and so forth.

The CI/CD pipeline element of GitLab CE

Why use CI/CD pipelines for infrastructure administration

Based mostly on the necessities of the event staff, software program growth pipelines can take completely different kinds and use completely different elements. Model management programs are often git based mostly today (github, gitlab, bitbucket, and so forth.). Construct and automation servers equivalent to Jenkins,, Travis CI, to call just some, are additionally widespread elements of the pipeline. The number of choices and elements make the pipelines very customizable and scalable

CI/CD pipelines have been developed and used for years and I feel it’s lastly time to think about them for infrastructure configuration and administration. The identical benefits that made CI/CD pipelines indispensable from any software program growth enterprise apply additionally to infrastructure administration. These benefits embody:

  • automation on the forefront of all steps of the pipeline
  • model management and historic perception into all of the modifications
  • in depth testing of all configuration modifications
  • validation of modifications in a sandbox or take a look at setting previous to deployment to manufacturing
  • simple roll-back to a recognized good state in case a difficulty or bug is launched
  • risk of integration with change and ticketing programs for true infrastructure Steady Deployment

On this collection of blogs, I’ll display learn how to use Gitlab CE as a foundational element for a CI/CD pipeline that manages and configures a easy CML simulated community. A number of different elements are concerned as a part of the pipeline:

  • pyATS for creating and taking snapshots of the state of the community each prior and after the modifications have been utilized
  • Ansible for performing the configuration modifications
  • Cisco CML to simulate a 4 node community that may act because the take a look at infrastructure


Easy community simulation in Cisco CML

Keep tuned for a deeper dive

Subsequent up on this weblog collection we’ll dive deeper into Gitlab CE, and the CI/CD pipeline element. You probably have any questions or feedback, please go away me a remark within the part under.

Within the meantime, if you need to study and follow among the newest methods, please go to our Cisco Modeling Labs and the CML Sandbox. A world of community simulation awaits!

Meet me at Cisco Reside in Las Vegas, June 13 to 16

I’ll be within the DevNet zone and on the following classes:

  • BRKDEV-2883 – Prism of Potentialities with Cisco DevNet’s Community Programmability & Automation
  • DEVNET-1530 – NetAcad Session
  • DEVNET-2653 – Cisco ACI administration with Smartsheet
  • DEVNET-2806 – Construct customized safety advisory notification programs utilizing Cisco PSIRT APIs
  • DEVWKS-2367 – DevNet Workshop – Customized OpenAPI implementation for Cisco SD-WAN


We’d love to listen to what you assume. Ask a query or go away a remark under.
And keep related with Cisco DevNet on social!

LinkedIn | Twitter @CiscoDevNet | Fb | Developer Video Channel


We will be happy to hear your thoughts

Leave a reply

Enable registration in settings - general
Compare items
  • Total (0)
Shopping cart