Commit b9193642 by barni2000

vxlan base network is now optional

parent 48613706
network: network:
vxlan_base: False
if_name: eth0 if_name: eth0
vxlan_name: circle-vxlan vxlan_name: circle-vxlan
vxlan_id: 42 vxlan_id: 42
......
{% if pillar["deployment_mode"] == "node" %} {% if pillar["network"]["vxlan_base"] == True %}
{% set vxlan_port = pillar["network"]["vxlan_port"]["port"] %} {% set vxlan_port = pillar["network"]["vxlan_port"]["port"] %}
{% set vxlan_proto = pillar["network"]["vxlan_port"]["proto"] %} {% set vxlan_proto = pillar["network"]["vxlan_port"]["proto"] %}
......
...@@ -7,6 +7,7 @@ ovs-bridge: ...@@ -7,6 +7,7 @@ ovs-bridge:
- name: cloud - name: cloud
{% set net = pillar["network"] %} {% set net = pillar["network"] %}
{% if net["vxlan_base"] == True %}
circle-vxlan-if: circle-vxlan-if:
cmd.run: cmd.run:
- name: > - name: >
...@@ -22,6 +23,7 @@ circle-vxlan: ...@@ -22,6 +23,7 @@ circle-vxlan:
- openvswitch_bridge: ovs-bridge - openvswitch_bridge: ovs-bridge
- pkg: bind-utils - pkg: bind-utils
- cmd: circle-vxlan-if - cmd: circle-vxlan-if
{% endif %}
{% 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