Summary
We have covered configuration management and IaC approaches, together with the related tooling. Note that whether you should use Ansible, Terraform, or neither of them inside your continuous delivery pipeline highly depends on your particular use case.
Ansible shines when you have multiple bare-metal servers to manage, so if your release means making the same change into many servers at the same time, you'll most probably place Ansible commands inside your pipeline.
Terraform works best when you use the cloud. Therefore, if your release means making a change to your cloud infrastructure, then Terraform is the way to go.
However, if your environment is only a single Kubernetes cluster, then there is nothing wrong with executing kubectl
commands inside your pipeline.
The other takeaway points from this chapter are as follows:
- Configuration management is the process of creating and applying the configurations of the application.
- Ansible is one of the...