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:
parent
081c6946f3
commit
37a14759f7
@ -4,3 +4,5 @@ zfs_snapshot_datasets:
|
|||||||
sshd_enabled: true
|
sshd_enabled: true
|
||||||
loader_conf: "mrmanager_loader.conf"
|
loader_conf: "mrmanager_loader.conf"
|
||||||
rc_conf: "mrmanager_rc.conf"
|
rc_conf: "mrmanager_rc.conf"
|
||||||
|
network_rc: "mrmanager_network.conf"
|
||||||
|
routing_rc: "mrmanager_routing.conf"
|
||||||
|
@ -1,8 +1,4 @@
|
|||||||
hostname="mrmanager"
|
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"
|
zfs_enable="YES"
|
||||||
wireguard_enable="YES"
|
wireguard_enable="YES"
|
||||||
wireguard_interfaces="colo"
|
wireguard_interfaces="colo"
|
||||||
|
5
ansible/roles/network/files/mrmanager_network.conf
Normal file
5
ansible/roles/network/files/mrmanager_network.conf
Normal 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"
|
1
ansible/roles/network/files/mrmanager_routing.conf
Normal file
1
ansible/roles/network/files/mrmanager_routing.conf
Normal file
@ -0,0 +1 @@
|
|||||||
|
defaultrouter="74.80.180.137"
|
@ -11,6 +11,18 @@
|
|||||||
- src: "{{ network_rc }}"
|
- src: "{{ network_rc }}"
|
||||||
dest: /etc/rc.conf.d/network
|
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
|
- name: Install configuration
|
||||||
copy:
|
copy:
|
||||||
src: "files/{{ item.src }}"
|
src: "files/{{ item.src }}"
|
||||||
|
Loading…
Reference in New Issue
Block a user