Commit Graph

9 Commits

Author SHA1 Message Date
Ben D.
6828b364e1 Updated onboarding script 2026-04-23 14:44:27 -07:00
Ben D.
e1f647445f Updated onboarding script 2026-04-23 14:35:08 -07:00
Semaphore
a55a03de4a scripts: deploy_agent.sh — visudo optional, per-host credentials support 2026-03-13 10:11:23 -07:00
Semaphore
e147b15a89 scripts: add --bootstrap-proxmox flag to onboard_client.sh 2026-03-13 08:48:42 -07:00
Semaphore
5b42dbd51e Add linux_reboot playbook, update onboard_client.sh with reboot template + xcpng support 2026-03-12 22:06:48 -07:00
Semaphore
68c01ceafb Fix deploy_agent.sh — stdin consumption in loop, base64 script delivery via su 2026-03-12 12:02:16 -07:00
Semaphore
a42bf14665 Add XCP-NG integration, deploy_agent.sh, overhaul onboard_client.sh
- roles/xcpng_update: new role — patches XCP-NG pools via XO REST API
  - non-HA pools: pool-level install_patches + restart_hosts
  - HA clusters: rolling pool update via JSON-RPC pool.rollingUpdate
  - dry run support, patch verification after update
- roles/snapshot: add xcpng_xo hypervisor_type support via XO REST API
- playbooks/xcpng_pool_update.yml: new playbook for XCP-NG pool patching
- inventories/client_template/hosts.yml: add xcpng_hosts group
- scripts/onboard_client.sh: major overhaul
  - add --hypervisor proxmox|xcpng|baremetal|mixed
  - add --xo-url / --xo-token (falls back to global env)
  - webhook no longer required (falls back to N8N_WEBHOOK_URL in env)
  - ansible_user changed to ansible-msp-agent with sudo
  - xcpng_hosts group in inventory scaffold for xcpng/mixed clients
  - hypervisor-appropriate task templates created automatically
  - add --dry-run support
- scripts/deploy_agent.sh: new script — bootstrap ansible-msp-agent
  - reads hosts.yml to get Linux/Windows hosts
  - SSHes as native account, su - to root
  - creates ansible-msp-agent user + sudo-nopasswd group
  - deploys client key + MSP backup key to agent user and root
  - adjusts sshd_config, reloads sshd
  - verifies key-based login after bootstrap
  - Windows stub with skip + warning
  - continues on failure, prints summary
2026-03-12 11:15:43 -07:00
Semaphore
5b846654ba Update onboard_client.sh — full API automation, Proxmox vars, dynamic key IDs 2026-03-11 22:47:43 -07:00
Semaphore
876a5010e5 Add client onboarding script with Semaphore API integration 2026-03-10 17:27:06 -07:00