[scenarios] noha: Add MaaS VM, state to scenarios 39/60639/2
authorAlexandru Avadanii <Alexandru.Avadanii@enea.com>
Sat, 4 Aug 2018 16:10:13 +0000 (18:10 +0200)
committerAlexandru Avadanii <Alexandru.Avadanii@enea.com>
Tue, 7 Aug 2018 04:22:23 +0000 (06:22 +0200)
JIRA: FUEL-382

Change-Id: Ib1f905bec87ce2afe643b4aa3b0201d7100be16d
Signed-off-by: Alexandru Avadanii <Alexandru.Avadanii@enea.com>
mcp/config/scenario/.gitignore
mcp/config/scenario/os-nosdn-nofeature-noha.yaml.j2 [moved from mcp/config/scenario/os-nosdn-nofeature-noha.yaml with 79% similarity]
mcp/config/scenario/os-nosdn-ovs-noha.yaml.j2 [moved from mcp/config/scenario/os-nosdn-ovs-noha.yaml with 80% similarity]
mcp/config/scenario/os-odl-nofeature-noha.yaml.j2 [moved from mcp/config/scenario/os-odl-nofeature-noha.yaml with 80% similarity]
mcp/config/scenario/os-odl-ovs-noha.yaml.j2 [moved from mcp/config/scenario/os-odl-ovs-noha.yaml with 81% similarity]
mcp/config/scenario/os-ovn-nofeature-noha.yaml.j2 [moved from mcp/config/scenario/os-ovn-nofeature-noha.yaml with 79% similarity]

@@ -5,10 +5,15 @@
 # which accompanies this distribution, and is available at
 # http://www.apache.org/licenses/LICENSE-2.0
 ##############################################################################
+{%- import 'net_map.j2' as nm with context %}
 ---
 cluster:
   domain: mcp-ovs-noha.local
   states:
+{%- if nm.cluster.has_baremetal_nodes %}
+    - maas
+    - baremetal_init
+{%- endif %}
     - openstack_noha
     - neutron_gateway
     - networks
@@ -16,6 +21,9 @@ virtual:
   nodes:
     infra:
       - cfg01
+{%- if nm.cluster.has_baremetal_nodes %}
+      - mas01
+{%- endif %}
     control:
       - ctl01
       - gtw01
similarity index 80%
rename from mcp/config/scenario/os-nosdn-ovs-noha.yaml
rename to mcp/config/scenario/os-nosdn-ovs-noha.yaml.j2
index 795b730..bee0e92 100644 (file)
@@ -5,10 +5,15 @@
 # which accompanies this distribution, and is available at
 # http://www.apache.org/licenses/LICENSE-2.0
 ##############################################################################
+{%- import 'net_map.j2' as nm with context %}
 ---
 cluster:
   domain: mcp-ovs-dpdk-noha.local
   states:
+{%- if nm.cluster.has_baremetal_nodes %}
+    - maas
+    - baremetal_init
+{%- endif %}
     - dpdk
     - openstack_noha
     - neutron_gateway
@@ -17,6 +22,9 @@ virtual:
   nodes:
     infra:
       - cfg01
+{%- if nm.cluster.has_baremetal_nodes %}
+      - mas01
+{%- endif %}
     control:
       - ctl01
       - gtw01
@@ -5,10 +5,15 @@
 # which accompanies this distribution, and is available at
 # http://www.apache.org/licenses/LICENSE-2.0
 ##############################################################################
+{%- import 'net_map.j2' as nm with context %}
 ---
 cluster:
   domain: mcp-odl-noha.local
   states:
+{%- if nm.cluster.has_baremetal_nodes %}
+    - maas
+    - baremetal_init
+{%- endif %}
     - opendaylight
     - openstack_noha
     - neutron_gateway
@@ -17,6 +22,9 @@ virtual:
   nodes:
     infra:
       - cfg01
+{%- if nm.cluster.has_baremetal_nodes %}
+      - mas01
+{%- endif %}
     control:
       - ctl01
       - gtw01
similarity index 81%
rename from mcp/config/scenario/os-odl-ovs-noha.yaml
rename to mcp/config/scenario/os-odl-ovs-noha.yaml.j2
index 29e6842..c81d35c 100644 (file)
@@ -5,10 +5,15 @@
 # which accompanies this distribution, and is available at
 # http://www.apache.org/licenses/LICENSE-2.0
 ##############################################################################
+{%- import 'net_map.j2' as nm with context %}
 ---
 cluster:
   domain: mcp-odl-noha.local
   states:
+{%- if nm.cluster.has_baremetal_nodes %}
+    - maas
+    - baremetal_init
+{%- endif %}
     - dpdk
     - opendaylight
     - openstack_noha
@@ -18,6 +23,9 @@ virtual:
   nodes:
     infra:
       - cfg01
+{%- if nm.cluster.has_baremetal_nodes %}
+      - mas01
+{%- endif %}
     control:
       - ctl01
       - gtw01
@@ -5,16 +5,24 @@
 # which accompanies this distribution, and is available at
 # http://www.apache.org/licenses/LICENSE-2.0
 ##############################################################################
+{%- import 'net_map.j2' as nm with context %}
 ---
 cluster:
   domain: mcp-ovn-noha.local
   states:
+{%- if nm.cluster.has_baremetal_nodes %}
+    - maas
+    - baremetal_init
+{%- endif %}
     - openstack_noha
     - networks
 virtual:
   nodes:
     infra:
       - cfg01
+{%- if nm.cluster.has_baremetal_nodes %}
+      - mas01
+{%- endif %}
     control:
       - ctl01
     compute: