This is the instruction to use Ansible to build a remote cluster for SREGym. We currently use CloudLab but we believe this will work on any servers you have access to.
Note
This playbook needs SSH + root (sudo) access to each host for OS-level setup, so a managed Kubernetes service won't work. Instead, spin up a few plain VMs/VPS instances and add them to inventory.yml.
cp inventory.yml.example inventory.ymlModify the IPs and user names in the inventory file accordingly, inventory.yml.
ansible-playbook -i inventory.yml setup_cluster.ymlAfter these, you should see every node running inside the cluster:
kubectl get nodesThe playbook manages Ubuntu's generic 6.8 kernel only on architectures listed
in generic_kernel_architectures (currently x86_64). Other architectures
retain their provider kernel because kernel images and bootloader limits vary
by platform. If a different platform has been validated with this kernel, add
its Ansible architecture to that list in setup_cluster.yml.
If you're running into issues from Ansible related to host key authentication, try typing yes in your terminal for each node, or proceeding with the following steps:
You can create a file in the same directory as this README called ansible.cfg to turn off that warning:
[defaults]
host_key_checking = FalseBe mindful about the security implications of disabling host key checking, if you're not aware ask someone who is.