This Environment is for automatic build and test predefined labs for vyos. At the moment, it only works with the EVE-NG Pro version, b/c the API is different from the CE version
install python requirements
pip install -r requirements.txt
Create a new User in Eve-NG. Username and password are both ansible
.
or set the credentials in the playbook.yml
vars
:
eve_ng_user
eve_ng_password
It is recommended to use a dedicated account for the Ansible Workflow. It is, at the moment, not possible to login with the user in the Eve-NG GUI and use the same user with the ansible workflow. With a different User, it is possible to look live in the playbook process.
see [[RUN.md]]
python main.py ssh HOSTNAME
This is only possible if a run
command failed and the lab is up.
- create a new template, based on iso and version name, do nothing when a VyOS image with the same version name is present
- delete an existing lab with the same name, if all hosts are down in the lab
- create the lab from the labs folder
- start the nodes
- configure the nodes
- run ping tests
- run command tests
- collect command output
- do a reboot
- run command tests
- if upgrade, upgrade all vyos
- if upgrade, run point 6 and 7 again
- generate *.rst documentation
- stop all nodes and delete the lab
If something failed, you can open the lab in the eve-ng lab management
section and investigate the problem.