更新时间:2021-06-24 12:33:06
coverpage
Title Page
Copyright and Credits
Learning DevOps
Dedication
Foreword
About Packt
Why subscribe?
Contributors
About the author
About the reviewers
Packt is searching for authors like you
Preface
Who this book is for
What this book covers
To get the most out of this book
Download the example code files
Download the color images
Code in Action
Conventions used
Get in touch
Reviews
Section 1: DevOps and Infrastructure as Code
DevOps Culture and Practices
Getting started with DevOps
Implementing CI/CD and continuous deployment
Continuous integration (CI)
Implementing CI
Continuous delivery (CD)
Continuous deployment
Understanding IaC practices
The benefits of IaC
IaC languages and tools
Scripting types
Declarative types
The IaC topology
The deployment and provisioning of the infrastructure
Server configuration
Immutable infrastructure with containers
Configuration and deployment in Kubernetes
IaC best practices
Summary
Questions
Further reading
Provisioning Cloud Infrastructure with Terraform
Technical requirements
Installing Terraform
Manual installation
Installation by script
Installing Terraform by script on Linux
Installing Terraform by script on Windows
Installing Terraform by script on macOS
Integrating Terraform with Azure Cloud Shell
Configuring Terraform for Azure
Creating the Azure SP
Configuring the Terraform provider
Terraform configuration for local development and testing
Writing a Terraform script to deploy Azure infrastructure
Following some Terraform good practices
Better visibility with the separation of files
Protection of sensitive data
Dynamizing the code with variables and interpolation functions
Deploying the infrastructure with Terraform
Initialization
Previewing changes
Applying the changes
Terraform command lines and life cycle
Using destroy to better rebuild
Formatting and validating the code
Formatting the code
Validating the code
Terraform's life cycle in a CI/CD process
Protecting tfstate in a remote backend
Using Ansible for Configuring IaaS Infrastructure
Installing Ansible
Installing Ansible with a script
Integrating Ansible into Azure Cloud Shell
Ansible artifacts
Configuring Ansible
Creating an inventory for targeting Ansible hosts
The inventory file
Configuring hosts in the inventory
Testing the inventory
Writing the first playbook
Writing a basic playbook
Understanding Ansible modules
Improving your playbooks with roles
Executing Ansible
Using the preview or dry run option
Increasing the log level output
Protecting data with Ansible Vault
Using variables in Ansible for better configuration
Protecting sensitive data with Ansible Vault
Using a dynamic inventory for Azure infrastructure