Switch to a lagg interface.

This is to avoid depending on the ethernet cable being plugged into a specific port.
This commit is contained in:
Tom Alexander 2023-05-28 14:22:49 -04:00
parent 081c6946f3
commit 37a14759f7
Signed by: talexander
GPG Key ID: D3A179C9A53C0EDE
5 changed files with 20 additions and 4 deletions

View File

@ -4,3 +4,5 @@ zfs_snapshot_datasets:
sshd_enabled: true
loader_conf: "mrmanager_loader.conf"
rc_conf: "mrmanager_rc.conf"
network_rc: "mrmanager_network.conf"
routing_rc: "mrmanager_routing.conf"

View File

@ -1,8 +1,4 @@
hostname="mrmanager"
ifconfig_igb0="inet 74.80.180.138 netmask 255.255.255.248"
ifconfig_igb1="inet 74.80.180.139 netmask 255.255.255.248"
defaultrouter="74.80.180.137"
sshd_enable="YES"
zfs_enable="YES"
wireguard_enable="YES"
wireguard_interfaces="colo"

View File

@ -0,0 +1,5 @@
cloned_interfaces="lagg0"
ifconfig_igb0="up"
ifconfig_igb1="up"
ifconfig_lagg0="up laggproto failover laggport igb0 laggport igb1"
ifconfig_lagg0_alias0="inet 74.80.180.138 netmask 255.255.255.248"

View File

@ -0,0 +1 @@
defaultrouter="74.80.180.137"

View File

@ -11,6 +11,18 @@
- src: "{{ network_rc }}"
dest: /etc/rc.conf.d/network
- name: Install configuration
copy:
src: "files/{{ item.src }}"
dest: "{{ item.dest }}"
mode: 0644
owner: root
group: wheel
when: routing_rc is defined
loop:
- src: "{{ routing_rc }}"
dest: /etc/rc.conf.d/routing
- name: Install configuration
copy:
src: "files/{{ item.src }}"