Commit f27951e6 by Czémán Arnold Committed by cloud

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

parent ea2eda72
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: ...@@ -11,5 +11,6 @@ base:
- firewall - firewall
- manager - manager
- common - common
- network
- installer - installer
- ports - ports
...@@ -6,16 +6,22 @@ ovs-bridge: ...@@ -6,16 +6,22 @@ ovs-bridge:
openvswitch_bridge.present: openvswitch_bridge.present:
- name: cloud - 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: circle-vxlan:
openvswitch_port.present: openvswitch_port.present:
- name: {{ net["vxlan_name"] }}
- bridge: cloud - bridge: cloud
- type: vxlan
- id: 42
- remote: 239.1.1.1
- dst_port: 4789
- require: - require:
- openvswitch_bridge: ovs-bridge - openvswitch_bridge: ovs-bridge
- pkg: bind-utils - pkg: bind-utils
- cmd: circle-vxlan-if
{% if grains['os_family'] == 'RedHat' %} {% if grains['os_family'] == 'RedHat' %}
net_config: 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