This document covers daily management operations for the INFRA module, including installation, uninstallation, scaling, and component maintenance.
Install INFRA Module
Use the infra.yml playbook to install the INFRA module on the infra group:
./infra.yml # Install INFRA module on infra group
Uninstall INFRA Module
Use the infra-rm.yml playbook to uninstall the INFRA module from the infra group:
./infra-rm.yml -l infra # Full removal: deregister, stop, remove config/environment/data, and uninstall packages
This playbook has no deletion safeguard. Full execution removes infra_data, nginx_data, nginx_home (default: /www), and /var/lib/grafana.
If you only need to stop services or deregister targets, use -t service or -t deregister. Read the complete removal scope and back up required data before running it.
Scale Out INFRA Module
Assign infra_seq to new nodes and add them to the infra group in the inventory:
all:children:infra:hosts:10.10.10.10:{infra_seq:1}# Existing node10.10.10.11:{infra_seq:2}# New node
Use the -l limit option to execute the playbook on the new node only:
./infra.yml -l 10.10.10.11 # Install INFRA module on new node
Manage Local Repository
Local repository management tasks:
./infra.yml -t repo # Create repo from internet or offline packages./infra.yml -t repo_upstream # Add upstream repositories./infra.yml -t repo_pkg # Download packages and dependencies./infra.yml -t repo_create # Create local yum/apt repository
Complete subtask list:
./infra.yml -t repo_dir # Create local repository directory./infra.yml -t repo_check # Check if local repo exists./infra.yml -t repo_prepare # Use existing repo directly./infra.yml -t repo_build # Build repo from upstream./infra.yml -t repo_upstream # Add upstream repositories./infra.yml -t repo_remove # Delete existing repo files./infra.yml -t repo_add # Add repo to system directory./infra.yml -t repo_url_pkg # Download packages from internet./infra.yml -t repo_cache # Create metadata cache./infra.yml -t repo_boot_pkg # Install bootstrap packages./infra.yml -t repo_pkg # Download packages and dependencies./infra.yml -t repo_create # Create local repository./infra.yml -t repo_use # Add new repo to system./infra.yml -t repo_nginx # Start Nginx file server
Change the public defaults before production. After Grafana initializes, changing grafana_admin_password in inventory does not by itself reset the live Grafana account password; change it through Grafana (or its supported administration interface), keep the inventory consistent, and rerender the environment when needed:
grafana_view_password is the password used by the default PostgreSQL metadb data source as dbuser_view. If that database role password changes, update both the declared value and the Grafana data source; changing only one side breaks the dashboard connection.