Fix interfaces
This commit is contained in:
parent
200f11dc4d
commit
72387f3e79
|
@ -1,8 +1,8 @@
|
|||
# vim: ft=yaml.ansible
|
||||
# code: language=ansible
|
||||
---
|
||||
ansible_host: 85.209.118.134 # TODO: Change to DNS name
|
||||
ansible_port: 22
|
||||
|
||||
hostname: "{{ inventory_hostname }}"
|
||||
fqdn: "{{ hostname }}.servers.data.coop"
|
||||
|
||||
ansible_host: "{{ fqdn }}"
|
||||
ansible_port: 22
|
||||
|
|
|
@ -1,12 +1,12 @@
|
|||
# vim: ft=yaml.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 }}"
|
||||
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
|
||||
|
|
|
@ -1,11 +1,11 @@
|
|||
# vim: ft=yaml.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
|
||||
|
||||
vm_host: cloud
|
||||
vm_type: uptime
|
||||
|
||||
hostname: "{{ inventory_hostname }}"
|
||||
fqdn: "{{ hostname }}.vm.{{ vm_host }}.servers.data.coop"
|
||||
|
|
|
@ -1,12 +1,12 @@
|
|||
# vim: ft=yaml.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 }}"
|
||||
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
|
||||
|
|
|
@ -1,12 +1,12 @@
|
|||
# vim: ft=yaml.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 }}"
|
||||
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
|
||||
|
|
|
@ -59,7 +59,7 @@ iface vmbr2 inet static
|
|||
#NAT bridge for VMs that need masquerading
|
||||
|
||||
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-down iptables -t nat -D 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 vmbr0 -j MASQUERADE
|
||||
|
||||
source /etc/network/interfaces.d/*
|
Loading…
Reference in a new issue