configuration management
Keeping the software, settings, files and services on your machines in a known, described state, and putting them back when they wander from it.
In more detail
It is the job that starts once a machine exists: deciding what is installed on it, which configuration files it carries, which services run and which accounts exist. Writing that description down once and applying it to every machine replaces changing each by hand, and reapplying it reveals any machine that has drifted.
Examples
Ansible, Puppet, Chef and Salt are configuration management tools.In Terraform: Configuration management tools such as Ansible install packages, write configuration files and keep them patched on machines that already exist. Terraform does not do this job; it creates the machines themselves. Teams commonly use Terraform to provision and a configuration management tool to set up what runs inside.Related terms
- provisioning — Creating the machines, disks and networks themselves, so that there is something to log into and configure.
- desired state — A description of how a machine should look when the work is finished, rather than a list of steps to get there.
- idempotency — The property of an operation that gives the same result whether you run it once or many times, because a repeat run finds nothing left to do.
- configuration drift — The slow, unrecorded way machines end up with different versions and settings from each other.
- Ansible — An open-source tool that configures many computers at once from plain-text files describing how each one should be set up.
- Terraform — An infrastructure-as-code tool from HashiCorp that creates and changes cloud resources such as servers, networks and databases from configuration files.
- provisioner — A block inside a resource that runs a script, locally or on the new machine, after the resource is created or before it is destroyed.
Taught in
- What Configuration Management Is — Ansible Configuration Management at Scale
- Environment Specific Configuration — Ansible Configuration Management at Scale
- What Is Infrastructure As Code? — Infrastructure as Code with Terraform
- Provisioners: Why They Are A Last Resort — Infrastructure as Code with Terraform