---

# Install qemu-ev on CentOS
opennebula_node_kvm_use_ev: true

# Create bridge with tap0 bridge port
bridged_networking_iface: tap0

# Tap0 is already managed by tuntap role
bridged_networking_iface_manage: false

# Configure static IP on bridge, works as gateway
bridged_networking_static_ip: 192.168.150.1

# Enable Masquerade
iptables_masquerade_enabled: true

# Disable iptables strict rules which drop all not matching the base rules
iptables_base_rules_strict: false

# Parameters for static VXLAN connections between provisioned hosts
opennebula_p2p_vxlan_bridge: vxbr100
opennebula_p2p_vxlan_phydev: "{{ ansible_interfaces | sort | select('in', ['bond0_0', 'eth0']) | first | replace('_', ':') }}"
ansible_phydev: "ansible_{{ ansible_interfaces | sort | select('in', ['bond0_0', 'eth0']) | first }}"
opennebula_p2p_vxlan_vxlan_vni: 100
opennebula_p2p_vxlan_vxlan_dev: vxlan100
opennebula_p2p_vxlan_vxlan_local_ip: '{{ ansible_facts[opennebula_p2p_vxlan_phydev | replace(":", "_")]["ipv4"]["address"] }}'
opennebula_p2p_vxlan_remotes: "{{ groups['nodes'] | map('extract', hostvars, [ansible_phydev, 'ipv4', 'address']) | list }}"
