Fix interfaces

This commit is contained in:
Sam A. 2024-03-31 20:41:12 +02:00
parent 200f11dc4d
commit 72387f3e79
Signed by: samsapti
GPG key ID: CBBBE7371E81C4EA
6 changed files with 30 additions and 30 deletions

View file

@ -1,8 +1,8 @@
# vim: ft=yaml.ansible # vim: ft=yaml.ansible
# code: language=ansible # code: language=ansible
--- ---
ansible_host: 85.209.118.134 # TODO: Change to DNS name
ansible_port: 22
hostname: "{{ inventory_hostname }}" hostname: "{{ inventory_hostname }}"
fqdn: "{{ hostname }}.servers.data.coop" fqdn: "{{ hostname }}.servers.data.coop"
ansible_host: "{{ fqdn }}"
ansible_port: 22

View file

@ -1,12 +1,12 @@
# vim: ft=yaml.ansible # vim: ft=yaml.ansible
# code: language=ansible # code: language=ansible
--- ---
ansible_host: 85.209.118.134 # TODO: Change to DNS name
ansible_port: 19022
internal_ipv4: 10.2.1.5
vm_host: cavall
vm_type: control
hostname: "{{ inventory_hostname }}" hostname: "{{ inventory_hostname }}"
fqdn: "{{ hostname }}.vm.{{ vm_host }}.servers.data.coop" fqdn: "{{ hostname }}.vm.{{ vm_host }}.servers.data.coop"
ansible_host: "{{ fqdn }}"
ansible_port: 19022
internal_ipv4: 10.2.1.5
vm_host: cavall
vm_type: control

View file

@ -1,11 +1,11 @@
# vim: ft=yaml.ansible # vim: ft=yaml.ansible
# code: language=ansible # code: language=ansible
--- ---
ansible_host: 159.223.17.241 # TODO: Change to DNS name hostname: "{{ inventory_hostname }}"
fqdn: "{{ hostname }}.vm.{{ vm_host }}.servers.data.coop"
ansible_host: "{{ fqdn }}"
ansible_port: 22 ansible_port: 22
vm_host: cloud vm_host: cloud
vm_type: uptime vm_type: uptime
hostname: "{{ inventory_hostname }}"
fqdn: "{{ hostname }}.vm.{{ vm_host }}.servers.data.coop"

View file

@ -1,12 +1,12 @@
# vim: ft=yaml.ansible # vim: ft=yaml.ansible
# code: language=ansible # code: language=ansible
--- ---
ansible_host: 85.209.118.142 # TODO: Change to DNS name
ansible_port: 19022
internal_ipv4: 10.2.1.2
vm_host: cavall
vm_type: app
hostname: "{{ inventory_hostname }}" hostname: "{{ inventory_hostname }}"
fqdn: "{{ hostname }}.vm.{{ vm_host }}.servers.data.coop" fqdn: "{{ hostname }}.vm.{{ vm_host }}.servers.data.coop"
ansible_host: "{{ fqdn }}"
ansible_port: 19022
internal_ipv4: 10.2.1.2
vm_host: cavall
vm_type: app

View file

@ -1,12 +1,12 @@
# vim: ft=yaml.ansible # vim: ft=yaml.ansible
# code: language=ansible # code: language=ansible
--- ---
ansible_host: 85.209.118.143 # TODO: Change to DNS name
ansible_port: 19022
internal_ipv4: 10.2.1.3
vm_host: cavall
vm_type: app
hostname: "{{ inventory_hostname }}" hostname: "{{ inventory_hostname }}"
fqdn: "{{ hostname }}.vm.{{ vm_host }}.servers.data.coop" fqdn: "{{ hostname }}.vm.{{ vm_host }}.servers.data.coop"
ansible_host: "{{ fqdn }}"
ansible_port: 19022
internal_ipv4: 10.2.1.3
vm_host: cavall
vm_type: app

View file

@ -59,7 +59,7 @@ iface vmbr2 inet static
#NAT bridge for VMs that need masquerading #NAT bridge for VMs that need masquerading
post-up echo 1 > /proc/sys/net/ipv4/ip_forward post-up echo 1 > /proc/sys/net/ipv4/ip_forward
post-up iptables -t nat -A POSTROUTING -s '192.168.1.0/24' -o bond0 -j MASQUERADE post-up iptables -t nat -A POSTROUTING -s '192.168.1.0/24' -o vmbr0 -j MASQUERADE
post-down iptables -t nat -D POSTROUTING -s '192.168.1.0/24' -o bond0 -j MASQUERADE post-down iptables -t nat -D POSTROUTING -s '192.168.1.0/24' -o vmbr0 -j MASQUERADE
source /etc/network/interfaces.d/* source /etc/network/interfaces.d/*