- Learning DevOps
- Mikael Krief
- 258字
- 2021-06-24 12:32:09
Using Ansible for Configuring IaaS Infrastructure
In the previous chapter, we talked about the provisioning of an Azure cloud infrastructure with Terraform. If this infrastructure contains virtual machines (VMs), after their provisioning, it is necessary to configure their systems and install all middleware. This configuration will be necessary for the proper functioning of the applications that will be hosted on the VM.
There are several Infrastructure as Code (IaC) tools available for configuring VMs and the best known are Ansible, Puppet, Chef, SaltStack, and PowerShell DSC. Among them, Ansible from Red Hat (https://www.ansible.com/overview/it-automation) stands out for its many assets:
- It is declarative and uses the easy-to-read YAML language.
- Ansible only works with one executable.
- It does not require agents installed on the VMs to be configured.
- A simple SSL/WinRM connection is required for Ansible to connect to remote VMs.
- It has a template engine and a vault to encrypt/decrypt sensitive data.
- It is idempotent.
It should also be noted that Ansible does not only configure VMs, but it can also do infrastructure provisioning and security compliance.
In this chapter, we will see how to install Ansible, and then use it to configure a VM with an inventory and a playbook. We will also see how to protect sensitive data with Ansible Vault and finally, this chapter will discuss the use of a dynamic inventory in Azure.
The following topics are covered in this chapter:
- Installing Ansible
- Creating an Ansible inventory
- Executing the first playbook
- Protecting data with Ansible Vault
- Using a dynamic inventory for an Azure infrastructure
- 門診患者健康教育手冊(cè)
- 癌癥療愈錄:腫瘤門診敘事紀(jì)實(shí)
- 介入呼吸內(nèi)鏡并發(fā)癥及處理
- 醫(yī)學(xué)統(tǒng)計(jì)學(xué)實(shí)戰(zhàn)指導(dǎo)
- 眼科手術(shù)器械清洗消毒滅菌技術(shù)操作規(guī)程
- 不可逆電穿孔消融技術(shù)的應(yīng)用原理與實(shí)踐
- 災(zāi)難醫(yī)學(xué):管理篇
- 鑲牙就醫(yī)指南
- 全瓷修復(fù)技術(shù)(第2版)
- 會(huì)保養(yǎng)的女人年輕20歲
- 腫瘤揭秘
- 針灸學(xué)基本概念術(shù)語(yǔ)通典(上下冊(cè))
- 名老中醫(yī)治療優(yōu)勢(shì)病種診療方案選
- 眼科疾病防治手冊(cè)
- 十死換一生:我戰(zhàn)勝了抑郁癥