๐ Deployment Guideยถ
This section explains how to deploy and manage the Cyber Master Infrastructure Solution (CyMaIS) using Ansible. CyMaIS uses a collection of Ansible tasks, which are controlled via different โmodesโ โ such as updates, backups, resets, and cleanup operations.
โ Prerequisitesยถ
Before deploying, ensure the following are in place:
๐งญ Inventory File: A valid Ansible inventory file that defines your target systems (servers, personal computers, etc.). Adjust example paths to your environment.
๐ฆ CyMaIS Installed: Install via Kevinโs Package-Manager.
๐ (Optional) Vault Password File: If you donโt want to enter your vault password interactively, create a password file.
๐ Show CyMaIS Helpยถ
To get a full overview of available options and usage instructions, run:
cymais --help
๐ก Example Deploy Commandยถ
To deploy CyMaIS on a personal computer (e.g., a laptop), you can run:
cymais playbook \
--limit hp-spectre-x360 \
--host-type personal-computer \
--update \
--password-file ~/Repositories/git.veen.world/kevinveenbirkenbach/computer-inventory/.pass/general.txt \
~/Repositories/git.veen.world/kevinveenbirkenbach/computer-inventory/pcs.yml
๐ง What does this command do?ยถ
Parameter |
Description |
---|---|
|
Executes the playbook subcommand of CyMaIS. |
|
Limits execution to a specific host ( |
|
Defines the host type. Default is |
|
Enables update mode to apply software or configuration updates. |
|
Specifies the vault password file path for decrypting sensitive values. |
|
The path to the inventory file containing host definitions. |
๐ Using a Vault Password Fileยถ
To avoid typing your vault password interactively, you can provide a file:
--password-file /path/to/your/vault_pass.txt
โ ๏ธ Security Tip: Ensure the password file is properly protected (e.g.,
chmod 600 vault_pass.txt
).
๐ Full Command-Line Referenceยถ
Hereโs a breakdown of all available parameters from cymais playbook --help
:
Argument |
Description |
---|---|
|
Path to the Ansible inventory file. |
|
Run the playbook only on the specified host. |
|
Define the target system type (default is |
|
Enables reset mode (restores or resets specific configurations). |
|
Enables test mode (dry-run style). No actual changes are applied. |
|
Enables update mode to upgrade packages or configs. |
|
Triggers backup routines for data or configurations. |
|
Cleans up temporary files, old data, etc. |
|
Enables debug logging in the playbook. |
|
Uses a vault password file instead of interactive prompt. |
|
Increases output verbosity. More |
๐ง Combine Multiple Modesยถ
You can mix and match modes like this:
cymais playbook --update --backup --cleanup pcs.yml
This will update the system, create a backup, and clean up unnecessary files in one run.
๐ Footnoteยถ
๐ This documentation page was generated with the help of AI.
๐ค View the original conversation (ChatGPT)