Commit 9d3676dc by Czémán Arnold

network, pillar: fix vxlan interface, add network.sls pillar file

parent c8abe9e0
network:
if_name: eth0
vxlan_name: circle-vxlan
vxlan_id: 42
vxlan_port:
port: 4789
proto: udp # do not change!
......@@ -11,5 +11,6 @@ base:
- firewall
- manager
- common
- network
- installer
- ports
......@@ -6,16 +6,22 @@ ovs-bridge:
openvswitch_bridge.present:
- name: cloud
{% set net = pillar["network"] %}
circle-vxlan-if:
cmd.run:
- name: >
ip link add {{ net["vxlan_name"] }} type vxlan id {{ net["vxlan_id"] }} group 239.1.1.1 dev {{ net["if_name"] }} dstport {{ net["vxlan_port"]["port"] }} ;
ip link set {{ net["vxlan_name"] }} up
- unless: ip link show {{ net["vxlan_name"] }} | grep "{{ net["vxlan_name"] }}"
circle-vxlan:
openvswitch_port.present:
- name: {{ net["vxlan_name"] }}
- bridge: cloud
- type: vxlan
- id: 42
- remote: 239.1.1.1
- dst_port: 4789
- require:
- openvswitch_bridge: ovs-bridge
- pkg: bind-utils
- cmd: circle-vxlan-if
{% if grains['os_family'] == 'RedHat' %}
net_config:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment