You can deploy VM Enforcers, using an Ansible playbook, on the desired VM Enforcer group. This procedure is supported for Linux platforms only.
- VM Enforcer Group token. Refer to Create a VM Enforcer Group and VM Enforcer to create this token.
- Aqua username and password
- Following packages are required on the VM to install VM Enforcer:
- runc
- wget
Step 1. Download the Ansible playbook
git clone https://github.com/aquasecurity/deployments.git -b 6.5
cd ./deployments/enforcers/vm_enforcer/ansible/
Step 2. Create a hosts
file with the IP or DNS addresses of the VM(s). For example:
[all] # list the IP/DNS addresses of the VMs to deploy VM Enforcer
10.0.0.1 ansible_ssh_private_key_file=~/.ssh/test-key ansible_user=test-user
10.0.0.x ansible_ssh_private_key_file=~/.ssh/test-key
test.aqua.com ansible_user=test-user
Add the mandatory\optional variables with the --extra-vars
flag in the deployment command as shown below, and run the command.
Mandatory:
- USERNAME
- PASSWORD
- ENFORCER_VERSION
- TOKEN
- GATEWAY_ENDPOINT
Optional (MANDATORY for aqua cloud users with value true
)
- AQUA_TLS_VERIFY_VALUE
ansible-playbook vm-enforcer.yaml -i ./path/to/hosts -e vme_install=true --extra-vars "USERNAME=<username> PASSWORD=<password> ENFORCER_VERSION=<version> TOKEN=<token> GATEWAY_ENDPOINT=<endpoint>:<port>
AQUA_TLS_VERIFY=<AQUA_TLS_VERIFY_VALUE>"
ansible-playbook vm-enforcer.yaml -i ./path/to/hosts -e vme_uninstall=true
- Getting started with Ansible and Run your first Playbook guides.
- Aqua VM Enforcer Overview and all other Aqua Enforcers types overview
- Aqua VM Enforcers official documentation