The magics of configuration management

There are some magics in configuration management world.

First of all, I’d like to mention hiera, which is a component of Puppet. The magic of hiera is as the name indicated, it allows a hierarchy to be applied. The hierarchy defined different levels of priorities, the higher higher level hierarchy will overwrite lower level configuration. This is really useful when it comes to custom some specific stuff based on generalized settings.

Secondly, I’d like to talk about code reuse. The idea and concept is actually wide spread in programming world. Puppet uses puppet class to parse a bundle of actions to be reused , while Ansible uses Ansible roles. Programming in this area might not be too much related to logic, but structure and organization are pretty important.

Another magic that I want to talk about is reference, we know that any language has references and we know that top-level variables can be used anywhere. This is very useful when it comes to username and password management, cause normally a system contains multiple component. We call it system integration when we combine them. Eg, a web server uses MySQL access info to contact with MySQL databases. If there are multiple types servers like web servers, java backend servers need to talk to the same database, it might be a good idea to promote the access info into a global variable.

OK, generally speaking, it is not that hard to manage infrastructure if you have a thorough understanding of the code.

To view or add a comment, sign in

More articles by Li Jian

  • The k8s Operator Pattern

    Preface The kubernetes operator has been playing a vital role in kubernetes ecosystem, it wraps a user designed logic…

  • WSL2 VS Vmware workstation

    I'm an intensive desktop virtualization user in the past decade for my daily work as a Devops/SRE engineer. I used to…

    1 Comment
  • All about pipeline

    The term pipeline has been widely spread in IT industry, it could refer to: Continuous Integration Pipeline Continuous…

  • The art of declarative programming

    The usage of declarative programming has been rather popular these years. We could see a lot of products/solutions that…

    1 Comment
  • Why Puppet is falling behind Terraform ?

    Terraform has been emerged as a key configuration tool to Cloud configuration world. In terms of Infrastructure As…

    2 Comments

Insights from the community

Others also viewed

Explore topics