Administration

Infrastructure components and INFRA cluster administration SOP: create, destroy, scale out, scale in, certificates, repositories…

This section covers daily administration and operations for Pigsty deployments.


Create INFRA Module

Use infra.yml playbook to install INFRA module on infra group:

./infra.yml     # Install INFRA module on infra group

Uninstall INFRA Module

Use dedicated infra-rm.yml playbook to remove INFRA module from infra group:

./infra-rm.yml  # Remove INFRA module from infra group

Manage Local Repository

Pigsty includes local yum/apt repo for software packages. Manage repo configuration:

Repo Variables

VariableDescription
repo_enabledEnable local repo on node
repo_upstreamUpstream repos to include
repo_removeRemove upstream repos if true
repo_url_pkgExtra packages to download
repo_cleanClean repo cache (makecache)
repo_pkgPackages to include

Repo Tasks

./infra.yml -t repo              # Create or update repo

Repo location: /www/pigsty served by Nginx.

More: Configuration: INFRA - REPO


Ansible

Using Ansible to run administration commands

Playbooks

Built-in Ansible playbooks in Pigsty

Nginx Management

Nginx management, web portal configuration, web server, upstream services

Software Repository

Managing local APT/YUM software repositories

Domain Management

Configure local or public domain names to access Pigsty services.

Module Management

INFRA module management SOP: define, create, destroy, scale out, scale in

CA and Certificates

Using self-signed CA or real HTTPS certificates


Last Modified 2026-01-09: add supabase asciinema demo (693cfa8)