prole/infrastructure/playbooks
chrisfu cad49cc0a6 Summary of recent repairs and infrastructure updates
Repairs and improvements:
- iSCSI: Added cleanup tasks to remove stale mounts and fstab entries. Improved robustness of iSCSI target management and added 'iscsi_absent_mounts' support.
- K3s:
    - Updated service start logic to accept 'activating' state, preventing premature failure during slow startups.
    - Improved service stop logic to safely handle missing or not-found services.
    - Ensured 'prole-installer' ServiceAccount and ClusterRoleBinding exist for K8s administration.
    - Added leader election and etcd tuning arguments (forgiving leases) to config.yaml.j2.
    - Removed deprecated 'prole-port-forwards' systemd service.
- Installer & Scripts:
    - Updated legacy_tk.py to support K3s mode, secret resolution for passwords, and better environment management (including ~/.prole/env.sh for service mode).
    - Updated init_ansible.sh to support PROLE_VAULT_PASS_FILE and ANSIBLE_VAULT_PASSWORD_FILE.
    - Improved directory and kubeconfig path resolution in prole_cfg.sh to support fallback to ~/.prole.
    - Enhanced Grafana password resolution in init_monitoring.sh.
    - Added automatic application of iSCSI StorageClass and PersistentVolumes in init_openbao.sh.
- General: Switched conf/prole.cfg to k3s deployment mode and updated vault_k3s.yml token.

New Ansible Tasks and Playbooks:
- infrastructure/playbooks/iscsi_cleanup.yml: Automates logout and removal of stale iSCSI node records.
- infrastructure/playbooks/prole_logs_migrate.yml: Orchestrates /prole/logs migration to iSCSI storage.
- infrastructure/playbooks/tmp_bao_dir.yml: Ensures host-level storage directories for OpenBao.
- infrastructure/playbooks/tmp_mount.yml: Utility to verify and enforce host-level mounts.
- infrastructure/playbooks/k3s_sync.yml: Added tasks to start K3s after sync and update local kubeconfig on the controller.
- Added 'Unmount stale iSCSI mounts' and 'Remove stale iSCSI fstab entries' to the iscsi role.
- Added 'Ensure prole-installer service account exists' to the k3s role.
2026-02-15 17:51:57 -08:00
..
bootstrap_local_ansible_user.yml ansible starts here 2026-01-18 20:02:41 -08:00
cgroups.yml Add playbooks and manifests for cgroups and iSCSI storage setup 2026-02-06 01:19:59 -08:00
check_k3s_endpoint.yml Refactor project structure and update initialization scripts 2026-02-14 13:44:49 -08:00
iscsi_cleanup.yml Summary of recent repairs and infrastructure updates 2026-02-15 17:51:57 -08:00
k3s_delete.yml Add playbooks for k3s reset and deletion with vault token removal. Include k3s cleanup tasks role. 2026-01-28 13:34:37 -08:00
k3s_diagnose_repair.yml checkpoint: installer refinements, k3s drift protection, and infra updates 2026-02-12 02:30:44 -08:00
k3s_fetch_kubeconfig.yml Checkpoint: Refactor common services and monitoring initialization. Updates: etc/init_monitoring.sh (Grafana naming, legacy cleanup), etc/init_common_services.sh (migration/cleanup logic), added etc/init_registry.sh, updated etc/init_cloudnative_pg.sh (manifest filtering), updated configs, and enhanced tests. Fixed: excluded .ansible logs and added to .gitignore. 2026-02-09 18:50:44 -08:00
k3s_reset.yml Add serial execution and integrate cgroup role in k3s reset playbook 2026-01-28 15:03:10 -08:00
k3s_start_single.yml feat: infrastructure and installer updates for k3s, OpenTofu, and prole-db 2026-02-05 21:27:18 -08:00
k3s_stop.yml feat: infrastructure and installer updates for k3s, OpenTofu, and prole-db 2026-02-05 21:27:18 -08:00
k3s_sync.yml Summary of recent repairs and infrastructure updates 2026-02-15 17:51:57 -08:00
prole_logs_migrate.yml Summary of recent repairs and infrastructure updates 2026-02-15 17:51:57 -08:00
rotate_pihole_db.yml ansible managed piholes 2026-01-18 22:01:23 -08:00
site.yml checkpoint: installer refinements, k3s drift protection, and infra updates 2026-02-12 02:30:44 -08:00
swap.yml ansible: replace no_swap role with swap role and enhance K3s setup 2026-01-21 16:19:17 -08:00
sync_pihole_toml.yml ansible managed piholes 2026-01-18 22:01:23 -08:00
tmp_bao_dir.yml Summary of recent repairs and infrastructure updates 2026-02-15 17:51:57 -08:00
tmp_mount.yml Summary of recent repairs and infrastructure updates 2026-02-15 17:51:57 -08:00