aboutsummaryrefslogtreecommitdiffstats
path: root/mcp/config
diff options
context:
space:
mode:
Diffstat (limited to 'mcp/config')
-rw-r--r--mcp/config/scenario/baremetal/os-odl_l3-nofeature-ha.yaml14
-rwxr-xr-xmcp/config/states/dpdk3
-rwxr-xr-xmcp/config/states/maas2
-rwxr-xr-xmcp/config/states/networks1
-rwxr-xr-xmcp/config/states/neutron_compute3
-rwxr-xr-xmcp/config/states/opendaylight3
-rwxr-xr-xmcp/config/states/openstack3
-rwxr-xr-xmcp/config/states/openstack_ha3
8 files changed, 32 insertions, 0 deletions
diff --git a/mcp/config/scenario/baremetal/os-odl_l3-nofeature-ha.yaml b/mcp/config/scenario/baremetal/os-odl_l3-nofeature-ha.yaml
new file mode 100644
index 000000000..2d5339068
--- /dev/null
+++ b/mcp/config/scenario/baremetal/os-odl_l3-nofeature-ha.yaml
@@ -0,0 +1,14 @@
+cluster:
+ domain: baremetal-mcp-ocata-odl-ha.local
+ states:
+ - maas
+ - opendaylight
+ - openstack_ha
+ - networks
+virtual:
+ nodes:
+ - cfg01
+ - mas01
+ mas01:
+ vcpus: 4
+ ram: 16384
diff --git a/mcp/config/states/dpdk b/mcp/config/states/dpdk
index 8834d47c1..c6cd2a5a8 100755
--- a/mcp/config/states/dpdk
+++ b/mcp/config/states/dpdk
@@ -1,3 +1,6 @@
+#!/bin/bash
+set -x
+
salt -I 'nova:compute' system.reboot
while true; do salt -I 'nova:compute' test.ping | fgrep -q 'Not connected' || break; done
salt -I 'nova:compute' state.sls linux.network.dpdk
diff --git a/mcp/config/states/maas b/mcp/config/states/maas
index 436c2ff3b..31625d827 100755
--- a/mcp/config/states/maas
+++ b/mcp/config/states/maas
@@ -1,4 +1,6 @@
#!/bin/bash
+set -x
+
function wait_for() {
local total_attempts=$1; shift
local cmdstr=$@
diff --git a/mcp/config/states/networks b/mcp/config/states/networks
index 6f294cea1..505153a8a 100755
--- a/mcp/config/states/networks
+++ b/mcp/config/states/networks
@@ -1,4 +1,5 @@
#!/bin/bash
+set -x
# Determine public network based on external IPs from compute node
# NOTE: mask currently hardcoded to /24
diff --git a/mcp/config/states/neutron_compute b/mcp/config/states/neutron_compute
index e2ffec6be..d58162100 100755
--- a/mcp/config/states/neutron_compute
+++ b/mcp/config/states/neutron_compute
@@ -1 +1,4 @@
+#!/bin/bash
+set -x
+
salt -I 'neutron:compute' state.sls neutron
diff --git a/mcp/config/states/opendaylight b/mcp/config/states/opendaylight
index 3b1cf7594..bee4c8586 100755
--- a/mcp/config/states/opendaylight
+++ b/mcp/config/states/opendaylight
@@ -1,3 +1,6 @@
+#!/bin/bash
+set -x
+
salt -I 'opendaylight:server' state.sls opendaylight
salt -I 'opendaylight:client' state.sls opendaylight.client
salt -I 'neutron:server' state.sls opendaylight.client
diff --git a/mcp/config/states/openstack b/mcp/config/states/openstack
index 57ca5856b..5ded58c87 100755
--- a/mcp/config/states/openstack
+++ b/mcp/config/states/openstack
@@ -1,3 +1,6 @@
+#!/bin/bash
+set -x
+
salt -I 'rabbitmq:server' state.sls rabbitmq
salt -I 'rabbitmq:server' cmd.run "rabbitmqctl status"
diff --git a/mcp/config/states/openstack_ha b/mcp/config/states/openstack_ha
index 4a39d5102..2597e82e3 100755
--- a/mcp/config/states/openstack_ha
+++ b/mcp/config/states/openstack_ha
@@ -1,3 +1,6 @@
+#!/bin/bash
+set -x
+
salt -I 'keepalived:cluster' state.sls keepalived -b 1
salt -I 'keepalived:cluster' pillar.get keepalived:cluster:instance:VIP:address