This project was borne out of a need to quickly spin up and tear down a Cisco VIRL server for study purposes.
The deploy-virl-packet-server
playbook will:
- Provision a Cisco VIRL server on https://packet.net/
- Install the latest version of Cisco VIRL
The teardown-virl-packet-server
playbook will:
- Destroy the Cisco VIRL server on https://packet.net/
- This project will NOT install a licensed VIRL; you still have to register this instance with Cisco.
- You will also have to download the VMaestro client in order to run your topologies.
Visit https://packet.net/:
- Create an account and add a form of payment
- Create a project called cisco_virl
- Add a personal or project api key
- create an ssh key pair and upload the public key to Packet.net
pip install packet-python
[defaults]
inventory = inventory
host_key_checking = False
vault_password_file = </path/to/your/vault/password/file>
retry_files_enabled = False
[persistent_connection]
command_timeout = 100
*or remove the 'vault_password_file' line if you prefer to supply the password some other way
---
# roles/packet-net-provision/vars/vault.yml
vaulted_api_token: <your_api_key>
---
# roles/packet-net-provision/vars/vault.yml
vaulted_api_token: <your_api_key>
#### Vault your api key
```ansible-vault encrypt roles/packet-net-provision/vars/vault.yml```
ansible-playbook deploy-virl-packet-server.yml
ansible-playbook teardown-virl-packet-server.yml