Skip to content
Snippets Groups Projects
Commit 9d871d16 authored by Erik Reid's avatar Erik Reid
Browse files

copy sample topology

parent 24d4891c
Branches
Tags
No related merge requests found
......@@ -17,9 +17,17 @@
ansible.builtin.pip:
name: boto3
- name: Add relevant users to docker group
user:
name: "{{ item }}"
groups: docker
append: yes
with_items: "{{ users }}"
- name: Create images
ansible.builtin.include_tasks: import_image.yml
loop: "{{ images }}"
loop_control:
loop_var: image
......@@ -8,3 +8,6 @@ images:
- filename: cEOS-lab-4.28.2.1F.tar
image_name: ceos
image_tag: 4.28.1.1F
users:
- erik
- name: Ping them
ansible.builtin.ping:
- name: Show something
ansible.builtin.debug:
msg: blah blah
- name: Working directory
ansible.builtin.file:
path: ceosx2
state: directory
mode: '0755'
- name: Create topology file
ansible.builtin.template:
src: ceosx2.clab.yml.j2
dest: ceosx2/ceosx2.clab.yml
# - name: System Setup
# hosts: dev_environments
# become: true
# roles:
# - containerlab
# - name: System Setup
# hosts: dev_environments
# roles:
# - dev_network
# - name: Get VM images
# amazon.aws.aws_s3:
# aws_access_key: AKIA6DQFYS5WRMJU4FW6
# aws_secret_key: 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
# region: eu-west-3
# bucket: geant-emulation-images
# object: "{{ item }}"
# dest: "/tmp/{{ item }}"
# mode: get
# loop:
# - cEOS-lab-4.27.6M.tar
# - cEOS-lab-4.28.2.1F.tar
name: ceosx2
topology:
nodes:
ceos1:
kind: ceos
image: ceos:4.28.1.1F
ceos2:
kind: ceos
image: ceos:4.28.1.1F
links:
- endpoints: ["ceos1:eth1", "ceos2:eth1"]
name: srlceos01
topology:
nodes:
srl:
kind: srl
image: ghcr.io/nokia/srlinux
ceos:
kind: srl
image: ghcr.io/nokia/srlinux
links:
- endpoints: ["srl:e1-1", "ceos:e1-1"]
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment