Cloud Certifications
-
When to use immutable infrastructure – Immutable Infrastructure with Packer
Deciding to switch to immutable infrastructure is difficult, especially when your Ops team treats servers as pets. Most people get paranoid about the idea of deleting an existing server and…
-
Immutable infrastructure with HashiCorp’s Packer – Immutable Infrastructure with Packer-2
With the scalable infrastructure that the cloud provides, you can have a dynamic horizontal scaling model where VMs scale with traffic. Therefore, you can have the best possible utilization of…
-
Registering variables – Infrastructure as Code (IaC) with Terraform
If a task within your playbook, for example, needs a value from the result of a preceding task, we can use the register attribute. The following directory contains all the…
-
Dictionary variables – Infrastructure as Code (IaC) with Terraform
Dictionary variables hold a complex combination of key-value pairs, the same as a Python dictionary. You can define dictionary variables using the standard YAML syntax, as in the following example:foo:bar:…
-
Designing for reusability – Infrastructure as Code (IaC) with Terraform
Ansible provides variables for turning Ansible playbooks into reusable templates. You can substitute variables in the right places using Jinja2 markup, which we’ve already used in the last playbook. Let’s…
-
Combining playbooks – Infrastructure as Code (IaC) with Terraform
As we’ve written multiple playbooks, we need to execute them in order. We cannot configure the services before installing packages and services, and there is no point in running an…
-
Installing application packages and services – Infrastructure as Code (IaC) with Terraform
We will use the apt module to install the packages on Ubuntu, and the service module to start and enable the service. Let’s start by installing Apache on the web…
-
Installing Ansible in the control node – Infrastructure as Code (IaC) with Terraform
Ansible requires a Linux/Unix machine (preferably), and you should have Python 2.x or 3.x installed. As the Ansible control node runs on Ubuntu, Ansible provides a personal package archive (PPA)…
-
Connecting the Ansible control node with inventory servers – Infrastructure as Code (IaC) with Terraform
We’ve already set up passwordless SSH between the control node and managed nodes when we provisioned the infrastructure using Terraform. Let’s look at how we did that to understand it…
-
Introduction to configuration management – Infrastructure as Code (IaC) with Terraform-
Let’s delve into the reasons why using Ansible is a great choice for CM and automation. Here are some compelling factors: These advantages establish Ansible as a popular choice for…