Browse code

Ironic: add flag for using plugin

This adds a flag to skip ironic code if the ironic devstack plugin is in
use. This flag will be set to true in ironic's devstack plugin to
indicate that the plugin should be in control, rather than devstack.

This is for the transition period only, and will be removed with the
rest of the ironic code in the devstack tree, once the gate
is configured to use the ironic plugin.

Change-Id: Id01d97fd13fa9f866d645ec5077834ddb78b2b89

Jim Rollenhagen authored on 2015/12/10 22:33:28
Showing 2 changed files
... ...
@@ -1,5 +1,12 @@
1 1
 # ironic.sh - Devstack extras script to install ironic
2 2
 
3
+# NOTE(jroll) this is used for the transition to a devstack plugin in
4
+# the ironic tree.
5
+IRONIC_USING_PLUGIN=$(trueorfalse False IRONIC_USING_PLUGIN)
6
+if [[ "$IRONIC_USING_PLUGIN" == "True" ]] ; then
7
+    return 0
8
+fi
9
+
3 10
 if is_service_enabled ir-api ir-cond; then
4 11
     if [[ "$1" == "source" ]]; then
5 12
         # Initial source
... ...
@@ -26,6 +26,13 @@ _PIPEFAIL_IRONIC=$(set +o | grep pipefail)
26 26
 set +o xtrace
27 27
 set +o pipefail
28 28
 
29
+# NOTE(jroll) this is used for the transition to a devstack plugin in
30
+# the ironic tree.
31
+IRONIC_USING_PLUGIN=$(trueorfalse False IRONIC_USING_PLUGIN)
32
+if [[ "$IRONIC_USING_PLUGIN" == "True" ]] ; then
33
+    return 0
34
+fi
35
+
29 36
 # Defaults
30 37
 # --------
31 38