6.6 Configuration Management Mechanisms Flashcards
Recognize the capabilities of configuration management mechanisms, such as Ansible and Terraform. (30 cards)
What are the main components of configuration management tools?
- Hosts
- Tasks
- Templates
- Variables
- Inventory
Hosts: Systems or devices managed by the configuration tool.
Tasks: Actions or commands executed on the hosts.
Templates: Dynamic files used to generate configuration settings using variables.
Variables: Parameters that provide flexibility to configurations by defining dynamic values.
Inventory: A list of hosts or systems managed by the configuration tool.
List three core functions of a configuration management tool.
- Implement configuration changes.
- Validate changes before deployment.
- Revert to the original configuration if a change is unsuccessful.
These functions help ensure that configuration changes are deployed correctly and can be easily reversed if necessary.
Which tool uses a push model to configure network devices?
Ansible
Ansible is widely adopted for automating network device configurations due to its simplicity, agentless operation, and powerful automation features.
What are the three types of text files utilized by Ansible?
- Playbooks
- Inventory
- Configuration
Playbooks: YAML files that define tasks to be executed on managed systems.
Inventory: Files that list the hosts or systems managed by Ansible.
Configuration: Files that define various settings and defaults for Ansible’s operation.
List three characteristics that are true regarding Ansible.
- Uses SSH for device management
- Agentless operation
- Uses YAML for playbooks
Uses SSH for device management: Ansible manages devices over SSH, eliminating the need for agent installation on target systems.
Agentless operation: Ansible operates without requiring agents on managed nodes, simplifying deployment and reducing overhead.
Uses YAML for playbooks: Ansible playbooks are written in YAML, providing a human-readable format for defining automation tasks.
What file term does Ansible use to list actions?
Playbook
Playbooks define the tasks to be executed and provide the core functionality in Ansible, detailing the configurations to be applied.
What is configuration drift?
Changes in a device’s configuration over time.
Configuration drift occurs when one device’s settings deviate from others of the same role, causing inconsistencies in the network.
What does configuration monitoring do?
Detects deviations from desired configurations and takes corrective actions.
Configuration monitoring helps maintain consistency and ensures compliance with predefined configurations across devices.
True or False:
Ansible uses a pull model for configuration management.
False
Ansible operates on a push model, pushing configurations to devices from a central location.
Fill in the blank:
Configuration monitoring is also called ______ ______.
configuration enforcement
This term emphasizes the enforcement of configuration compliance, ensuring devices adhere to the predefined configurations.
What is configuration provisioning?
The process of applying configuration changes after modifications.
This process ensures that updates to system configurations are implemented and applied to the infrastructure after changes are made in the configuration management system.
What is the purpose of configuration templates in management tools?
To separate common and unique configuration parts.
Templates divide configurations into shared elements for all devices in a role and unique elements specific to individual devices, making management more efficient.
What are the benefits of using templates for device configurations?
- Standardizes configurations to avoid unique setups
- Simplifies deployment of new devices with existing roles
- Eases troubleshooting by using a standard template
Templates help maintain consistency, simplify the deployment of new devices by reusing existing configurations, and assist in troubleshooting by using a standard setup for all devices in a role.
What language does Ansible use for templates?
Jinja2
Jinja2 is a popular templating engine that allows dynamic content generation in Ansible configurations using variables.
True or False:
Ansible can be used to configure cloud infrastructure.
True
Ansible can automate the provisioning and configuration of cloud infrastructure, including AWS, Azure, and Google Cloud, by using appropriate modules.
What is the architecture model used by Ansible?
Push model
Ansible’s architecture involves pushing configurations from a central server to devices without needing agents on the target systems.
What is the purpose of the ansible-playbook command?
To execute Ansible playbooks.
The ansible-playbook command runs the tasks defined in a playbook, applying configuration changes to managed systems.
What file format does Ansible use for defining variables?
YAML
YAML is used in Ansible for its simplicity and readability, allowing for easy definition and management of variables.
List the core Ansible commands.
- ansible –version
- ansible-playbook
- ansible-inventory
- ansible-galaxy
ansible –version: Displays Ansible version.
ansible-playbook: Runs Ansible playbooks.
ansible-inventory: Manages Ansible inventory.
ansible-galaxy: Manages Ansible roles from Galaxy.
What are the basic components of a Terraform configuration file?
- Providers
- Resources
- Variables
- Outputs
Providers: Define the infrastructure services (e.g., AWS, Azure) to be used by Terraform.
Resources: Specify the infrastructure components (e.g., servers, databases) to be created or managed.
Variables: Allow input values to customize configurations, making them more flexible.
Outputs: Define values to be displayed after deployment, such as IP addresses or URLs.
What is the component necessary to integrate Terraform with Google Cloud?
Providers
In Terraform, Providers serve as plugins that facilitate integration with various platforms, including Google Cloud. They enable Terraform to manage resources across different environments.
List the three essential steps in a Terraform workflow.
- Write
- Plan
- Apply
Write: Define infrastructure resources.
Plan: Preview proposed changes.
Apply: Execute changes to create or modify resources.
True or False:
Terraform supports both imperative and declarative styles.
False
Terraform follows a declarative approach where you specify the desired outcome and Terraform manages the necessary steps to reach it.
Why is Terraform considered declarative?
It defines the desired end state.
Terraform focuses on describing what the infrastructure should look like, leaving Terraform to figure out the necessary steps to achieve that state.