Semaphore (deploy UI)¶
Semaphore UI runs the playbooks of this repo from a web UI.
It is the community-scripts Semaphore LXC (CT 157, 10.0.3.230 — ProxLB may move it; configure.sh finds it, Ubuntu 24.04,
Semaphore 2.20). Admin password: cat /root/semaphore.creds inside the CT (store it in AliasVault).
| Semaphore object | Value |
|---|---|
| Project | homelab-infra |
Repository infra |
git@github.com:jwklijnsma/infra.git, branch main, key github-deploy |
Inventory proxmox (dynamic) |
file ../../../../infra-secrets/inventory (Semaphore joins it onto the task checkout, so it resolves to /opt/infra-secrets/inventory in the CT): the vault-encrypted Proxmox endpoint files, pve_token_*.yml and vault.yml copied from the controller |
| Template arguments | -i inventory/ — the repo's static hosts, group_vars/host_vars and the constructed managed group, layered after the Proxmox sources |
Environment default |
extra var ansible_ssh_private_key_file: /root/.ssh/id_ed25519 — tasks run with a throw-away HOME, so ssh/pct_remote would not find the CT's key otherwise |
Key infra-vault |
Ansible Vault password (same as the GitHub secret ANSIBLE_VAULT_PASSWORD) |
| Templates | site, exporters, monitoring, proxy, dns, inventory sync, netbox, runner, provision, patch, bootstrap pve, powerdns, powerdns sync, labscout, netalertx, homelable, auto update, netbox check, software discovery, ollama, aigw (not credentials_export: it writes every password to a CSV) |
| Schedules | powerdns sync every 15 min (PowerDNS) |
How it reaches the hosts:
- Ansible runs inside the CT from
/opt/ansible-venv(reporequirements.txt, collections fromrequirements.yml), symlinked into/usr/local/bin. - The CT's root key (
/root/.ssh/id_ed25519) is in/etc/pve/priv/authorized_keys, so it canpct execon every home-cluster node;configure.shalso adds it to the standalone nodes (node01, node02, node08) when it can reach them. - LXCs are reached with
community.proxmox.proxmox_pct_remotevia their PVE node — that connection setting lives in the generated1x-*.proxmox.ymlfiles, which is why the secret inventory must be present. Re-runconfigure.shafterbootstrap_pve.yml.
One-time: give Semaphore read access to the repo¶
Add the github-deploy public key as a deploy key on jwklijnsma/infra
(Settings → Deploy keys → Add, read-only is enough for Semaphore):
ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIC8k5sjHNkuQBeU9Jjnxa+GLDVK1XbP/anm2dwA50w2t node04-infra-deploy
Re-configure (idempotent): scripts/semaphore/configure.sh.