SCM Lecture07
SCM Lecture07
Configuration
Management
Infrastructure as Code
● It got a little more complex in the second wave. There were more
containers and people started using provisioning tools to specify
the application behaviors. People used Docker and DataDog.
Playbooks are YAML files that define a series of tasks, each of which
corresponds to a specific configuration or management action.
Once Ansible Connects your node, it will start pushing the small programs
to your nodes. The Small Program can be said as an Ansible module.
Ansible then executes those modules and removes them after the
execution.
The beauty of Ansible is that it removes the modules once those are
installed so effectively it connects to the host machine, executes the
instructions, and if it’s successfully installed removes the code which was
copied on the host machine which was executed.
Ansible Terms
Ansible server:
The machine where Ansible is installed and from which all tasks and
playbooks will be ran
Fact:
Information fetched from the client system from the global variables with
the gather-facts operation
Play:
Execution of a playbook
Handler:
Task which is called only if a notifier is present
Notifier:
Section attributed to a task which calls a handler if the output is changed
Tag:
Name set to a task which can be used later on to issue just that specific
task or group of tasks.
How Ansible Works?
How to install Ansible
● And the second input source is a state where terraform keeps the
up-to-date state of how the current set up of the infrastructure
looks like.
How to install Terraform
https://phoenixnap.com/kb/how-to-install-terraform
Terraform VS. Ansible
Demo Preparation
The steps to create a demo that includes a CI/CD cycle using
Jenkins, Git, Docker, APIs, Ansible, and Terraform: