Chapter 8: IaC and Config Management in Action
In the previous chapter, we looked at configuration management with Ansible and the technology's core concepts. We also discussed Terraform and IaC in Chapter 6, Infrastructure as Code (IaC) with Terraform. Now let's apply the principles of both technologies to a practical situation. Let's boot up a scalable Linux Apache MySQL and PHP (LAMP) stack on Azure with Terraform, Ansible, and another tool Packer that we'll discuss in this chapter.
In this chapter, we're going to cover the following main topics:
- Immutable infrastructure with Hashicorp's Packer
- Creating the Apache and MySQL playbook
- Building the Apache and MySQL images using Packer and Ansible provisioners
- Creating the required infrastructure with Terraform