Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
Ansible ContainerLab
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
GÉANT Orchestration and Automation Team
Development Playbooks
Ansible ContainerLab
Commits
2855f279
Commit
2855f279
authored
2 years ago
by
Erik Reid
Browse files
Options
Downloads
Patches
Plain Diff
initial draft README
parent
defb767d
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
README.md
+23
-0
23 additions, 0 deletions
README.md
with
23 additions
and
0 deletions
README.md
0 → 100644
+
23
−
0
View file @
2855f279
Ansible playbook for deploying a containerlab node
This playbook is used to install containerlab on a VM, and test network configurations.
To run this playbook:
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.
Run ansible like this: ansible-playbook -i inventory.yml playbook.yml
note: to run ansible, you'll also need to update group_vars/dev_environments.yml with the S3 access key & secret
Containerlab project template(s) are installed from here, in the ~nat users's home directory:
https://gitlab.geant.org/nat/ansible-containerlab/-/tree/main/roles/dev_networks/files
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
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment