This setup automates the deployment of VolPE across multiple machines using Ansible. It handles installing Podman, configuring workers, and starting the gRPC services.
pip install ansible
git clone <your-repo-url>
cd volpe-ansibleOpen inventory.yml and update it with your node details.
Example Configuration:
all:
vars:
ansible_user: ubuntu
ansible_ssh_private_key_file: ~/.ssh/id_rsa
master-node:
ansible_host: 192.168.1.10
worker-1:
ansible_host: 192.168.1.11
worker_id: w1
worker_memory_gb: 4.0
worker_cpu_count: 4
worker-2:
ansible_host: 192.168.1.12
worker_id: w2
worker_memory_gb: 2.0
worker_cpu_count: 2Ansible requires passwordless SSH access to all nodes. Test your connection:
ssh user@<node-ip>To set up keys:
ssh-keygen
ssh-copy-id user@<node-ip>ansible-playbook -i inventory.yml site.yml --checkansible-playbook -i inventory.yml site.ymlCheck if the services are up:
- UI / Static Page:
http://<master-ip>:8000/static - Worker Check:
curl http://<master-ip>:8000/workerCountTo stop and remove everything:
ansible-playbook -i inventory.yml site.yml --tags teardown