Browse code

Add EXTRA_BAREMETAL_OPTS to stack.sh

Allow the passing of extra options to the [baremetal] option group
by specifying EXTRA_BAREMETAL_OPTS, using the same format as the
existing flag EXTRA_OPTS.

Change-Id: I209675786c6a33a68d83a371292a1e1749ecb14c

Devananda van der Veen authored on 2013/01/10 08:29:03
Showing 1 changed files
... ...
@@ -1129,6 +1129,12 @@ if is_service_enabled nova; then
1129 1129
         iniset $NOVA_CONF baremetal power_manager $BM_POWER_MANAGER
1130 1130
         iniset $NOVA_CONF baremetal tftp_root /tftpboot
1131 1131
 
1132
+        # Define extra baremetal nova conf flags by defining the array ``EXTRA_BAREMETAL_OPTS``.
1133
+        for I in "${EXTRA_BAREMETAL_OPTS[@]}"; do
1134
+           # Attempt to convert flags to options
1135
+           iniset $NOVA_CONF baremetal ${I//=/ }
1136
+        done
1137
+
1132 1138
     # Default
1133 1139
     # -------
1134 1140