mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2026-11-07 19:32:17 +00:00
1.4 KiB
1.4 KiB
Administration Guide
Use this guide to create inventories, run a full deploy, and redeploy an existing environment with infinito commands only.
For CLI installation and local setup, see the Installation Guide.
Full Deploy
Create or refresh the inventory first, then deploy against the generated inventory file.
Create or Refresh the Inventory
infinito create inventory /etc/infinito.nexus/inventories/prod \
--inventory-file /etc/infinito.nexus/inventories/prod/devices.yml \
--host localhost \
--ssl-disabled \
--vars-file inventories/dev.yml \
--include 'web-app-nextcloud,web-app-keycloak'
Run the Deploy
infinito deploy dedicated /etc/infinito.nexus/inventories/prod/devices.yml \
--password-file /etc/infinito.nexus/inventories/prod/.password \
--log /etc/infinito.nexus/logs \
--diff \
-vv
Redeploy
When you need to redeploy after changes, repeat the same two infinito commands:
- Re-run
infinito create inventory ...to refresh the inventory file and included app list. - Re-run
infinito deploy dedicated ...against the same inventory file.
Inventory Notes
- Keep one inventory directory per environment.
- Store the password file next to the inventory file.
- Update
--includewhenever the target app set changes. - Replace
inventories/dev.ymlwith the matching vars file for your environment when you add one.