From f1f134935fbff4d4e5c5b95625a65a31cbc8330c Mon Sep 17 00:00:00 2001 From: Simone Spinelli <simone.spinelli@GNT-50059H2.win.dante.org.uk> Date: Fri, 24 Mar 2023 12:13:25 +0100 Subject: [PATCH] Update README file --- README.md | 24 ++++-------------------- 1 file changed, 4 insertions(+), 20 deletions(-) diff --git a/README.md b/README.md index 64449af..1f02d6c 100644 --- a/README.md +++ b/README.md @@ -3,24 +3,8 @@ This playbook is used to install ContainerLab on a VM, and test network configurations. To run this playbook: +``` +ansible-playbook -i $the-vm-you-want-to-configure, playbook.yml -e "username=$your-username-on-registry" -e "secret_token=$your-secret-tocken" -k +``` +Please note the comma after the target. - 1. Clone the base template (in Proxmox) "cl-base-os-template" - 2. Get the ip address of the new VM, and configure your ssh environment - 3. Create & activate a python virtual environment and install ansible - 4. Update inventory.yml so that your VM is defined in the "dev_environments" goup - 5. update group_vars/dev_environments.yml with your gitlab.geant.net username and personal access token - 6. Run ansible like this: ansible-playbook -i inventory.yml playbook.yml - -To ssh into the nat user's shell, you'll need the containerlab-rsa private key ("b3BlbnNzaC1rZXktdjEAAAAABG5...") - -To start ContainerLab (e.g. project lab01): - 1. shell into the nat user - 2. cd lab01 - 3. sudo containerlab deploy - -To view the currently running ContainerLab status: - 1. navigate to the same directory as above (e.g. lab01) - 2. sudo containerlab inspect - -> For pushing images to the (private/internal) repository at [gitlab.geant.net](https://gitlab.geant.net), refer to [this](https://gitlab.geant.net/docker/ci_registry) readme document. -> The approach is agnostic to the used registry however, as long as the registry URL is properly set in [the group variables](group_vars/dev_environments.yml.example). -- GitLab