-
Notifications
You must be signed in to change notification settings - Fork 27
Outdated examples in 'network' role #131
Copy link
Copy link
Open
Labels
documentationImprovements or additions to documentationImprovements or additions to documentation
Description
Description
The following two examples seem to be outdated, both with Ansible and OpenNebula:
Example Playbook one-deploy/roles/network/node/README.md
Line 23 in f70dc3a
Example Playbook
I found two problems with them:
- The example is not a valid playbook: hosts and roles cannot be added at the same time
- The given VNET templates are not picked up by the playbook because they have a wrong structure
Fix proposal
Rather give an inventory example inventory-with-network.yaml:
[...]
frontend:
hosts:
fe: { ansible_host: 10.0.0.1 }
vars:
vn:
bridge:
managed: true
template:
VN_MAD: bridge
AR:
TYPE: IP4
IP: 10.11.12.200
SIZE: 48
NETWORK_ADDRESS: 10.11.12.0
NETWORK_MASK: 255.255.255.0
GATEWAY: 10.11.12.1
DNS: 1.1.1.1
vxlan:
managed: true
template:
VN_MAD: vxlan
PHYDEV: ens6
BRIDGE: br1
VLAN_ID: 86
FILTER_IP_SPOOFING: 'NO'
FILTER_MAC_SPOOFING: 'YES'
GUEST_MTU: 1450
AR:
TYPE: IP4
IP: 192.168.150.200
SIZE: 48
NETWORK_ADDRESS: 192.168.150.0
NETWORK_MASK: 255.255.255.0
node:
hosts:
host01: { ansible_host: 10.0.0.2 }
vars:
vn:
vxlan:
# Define a VNET of type vxlan and move IP4/6 settings from ens6 to br1.
managed: true
template:
VN_MAD: vxlan
PHYDEV: ens6
BRIDGE: br1
VLAN_ID: 86
FILTER_IP_SPOOFING: 'NO'
FILTER_MAC_SPOOFING: 'YES'
GUEST_MTU: 1450
AR:
TYPE: IP4
IP: 192.168.150.200
SIZE: 48
NETWORK_ADDRESS: 192.168.150.0
NETWORK_MASK: 255.255.255.0And its invokation with tags, as it is shown in the one-deploy Wikik:
cd one-deploy
hatch shell
cd my-dir
ansible-playbook -i inventory-with-network.yaml -v opennebula.deploy.main -t networkReactions are currently unavailable
Metadata
Metadata
Assignees
Labels
documentationImprovements or additions to documentationImprovements or additions to documentation