proxmox: consolidate interface templates
This commit is contained in:
parent
7b4cb8f579
commit
0af8474e52
6 changed files with 23 additions and 29 deletions
|
@ -1,15 +1,15 @@
|
|||
- name: Install packages for SDN
|
||||
- name: Install FRR
|
||||
package:
|
||||
name: libpve-network-perl
|
||||
name: frr
|
||||
|
||||
- name: Copy FRR config
|
||||
- name: Configure FRR
|
||||
template:
|
||||
dest: /etc/frr/frr.conf
|
||||
src: frr.conf.j2
|
||||
mode: 0644
|
||||
notify: reload frr
|
||||
|
||||
- name: Enable FRR service
|
||||
- name: Enable FRR
|
||||
service:
|
||||
name: frr
|
||||
enabled: yes
|
|
@ -25,22 +25,19 @@
|
|||
notify: reboot
|
||||
|
||||
- name: Set up interfaces
|
||||
template:
|
||||
dest: /etc/network/interfaces.d/real.intf
|
||||
src: real.intf.j2
|
||||
mode: 0644
|
||||
notify: reload interfaces
|
||||
|
||||
- name: Set up bridges
|
||||
template:
|
||||
dest: /etc/network/interfaces
|
||||
src: interfaces.j2
|
||||
mode: 0644
|
||||
notify: reload interfaces
|
||||
|
||||
- name: Set up fabric and loopback interfaces
|
||||
template:
|
||||
dest: '/etc/network/interfaces.d/{{ item }}'
|
||||
src: '{{ item }}.j2'
|
||||
mode: 0644
|
||||
notify: reload interfaces
|
||||
loop:
|
||||
- fabric.intf
|
||||
- loopback.intf
|
||||
|
||||
- include_tasks: mgmt.yml
|
||||
|
||||
- include_tasks: sdn.yml
|
||||
- include_tasks: frr.yml
|
||||
|
|
|
@ -1,13 +1,6 @@
|
|||
# We could probably avoid rebooting in some cases, but those should never happen
|
||||
# in normal operation anyway. This way all setup is done before rebooting once.
|
||||
|
||||
- name: Set up management interfaces
|
||||
template:
|
||||
dest: /etc/network/interfaces.d/mgmt.intf
|
||||
src: mgmt.intf.j2
|
||||
mode: 0644
|
||||
notify: reboot
|
||||
|
||||
- name: Configure SSH instance in management VRF
|
||||
copy:
|
||||
dest: /etc/ssh/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue