Skip to content

Commit

Permalink
Merge cumulus roles.
Browse files Browse the repository at this point in the history
  • Loading branch information
Gerrit91 committed May 2, 2024
1 parent 7ff9bf3 commit 9876a74
Show file tree
Hide file tree
Showing 24 changed files with 24 additions and 27 deletions.
10 changes: 2 additions & 8 deletions deploy_partition.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,6 @@
tags: sonic

- name: Configure Cumulus switches
hosts: leaves:&cumulus
roles:
- name: leaf
tags: leaf
- name: internet
tags: internet

- name: Deploy docker on Cumulus switches
hosts: leaves:&cumulus
pre_tasks:
# the following task is not required as long as we do not install something from the cumulus repositories, for which all the keys are expired now
Expand All @@ -38,6 +30,8 @@
- name: install apt-transport
shell: dpkg -i /root/https-deps/*.deb && apt-get install -fy
roles:
- name: cumulus
tags: cumulus
- name: metal-roles/partition/roles/docker-on-cumulus
tags: docker-on-cumulus

Expand Down
5 changes: 5 additions & 0 deletions inventories/partition.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,3 +38,8 @@ leaves:
ansible_python_interpreter: /usr/bin/python
ansible_user: root
ansible_ssh_private_key_file: "{{ playbook_dir }}/files/ssh/id_rsa"

cumulus:
vars:
router_enable_static_route_leak: true
sonic:
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,4 +1,17 @@
---
- name: reload interfaces
shell: sleep 3; ifreload -a
async: 1
poll: 0
notify: wait for new connection

- name: wait for new connection
wait_for_connection:
connect_timeout: 20
sleep: 5
delay: 5
timeout: 300

- name: reload systemd
systemd:
daemon_reload: yes
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
src: internet.intf.j2
dest: /etc/network/interfaces.d/internet.intf

# add the vniInternet inferface to the bridge and configure the new vid at the bridge
# add the vniInternet interface to the bridge and configure the new vid at the bridge
# otherwise ifreload will not work
- name: add internet vni to bridge
command: net add bridge bridge ports vniInternet
Expand Down
8 changes: 3 additions & 5 deletions roles/leaf/tasks/main.yaml → roles/cumulus/tasks/main.yaml
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
---
- name: configure leaf
include_role:
name: router
vars:
router_enable_static_route_leak: true
- import_tasks: router.yaml

- name: flush handlers
meta: flush_handlers
Expand Down Expand Up @@ -31,3 +27,5 @@
src: bridgemac.json
dest: /etc/network/ifupdown2/policy.d/bridgemac.json
notify: reload interfaces

- import_tasks: internet.yaml
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
13 changes: 0 additions & 13 deletions roles/leaf/handlers/main.yaml

This file was deleted.

0 comments on commit 9876a74

Please sign in to comment.