ciao-webui: add storage options

new ciao-webui versions looks for the storage configuration
setup, otherwise it will fail to start, so we define `storage`
options.

Signed-off-by: Simental Magana, Marcos <marcos.simental.magana@intel.com>
This commit is contained in:
Simental Magana, Marcos
2016-10-07 11:55:32 -05:00
parent b76665a35c
commit d6d72d1f49
3 changed files with 10 additions and 0 deletions
+2
View File
@@ -41,6 +41,8 @@ Environment Variables
Identity (Keystone) host
- ``CONTROLLER_HOST``
Controller (ciao-controller) host
- ``STORAGE_HOST``
Storage (ciao-controller) host
- ``CERT_PASS``
Passprhase for the ciao-webui certificate
- ``MODE``
+3
View File
@@ -4,6 +4,7 @@ NODE_ENV=$MODE
CONTROLLER_HOST=$CONTROLLER_HOST
IDENTITY_HOST=$IDENTITY_HOST
CERT_PASS=$CERT_PASS
STORAGE_HOST=$STORAGE_HOST
_usage(){
>&2 echo "usage:"
@@ -11,6 +12,7 @@ _usage(){
>&2 echo " -v /path/to/ciao-webui-cert.pem:/etc/pki/ciao-webui-cert.pem \\"
>&2 echo " -e CONTROLLER_HOST=controller.example.com \\"
>&2 echo " -e IDENTITY_HOST=keystone.example.com \\"
>&2 echo "(optional: -e STORAGE_HOST=storage.example.com )\\"
>&2 echo "(optional: -e CERT_PASS=certificate_passphrase )"
}
@@ -38,6 +40,7 @@ fi
sed -i.bak s/##MODE##/$NODE_ENV/g /etc/ciao-webui/ciao_config.json
sed -i.bak s/##CONTROLLER_HOST##/$CONTROLLER_HOST/g /etc/ciao-webui/ciao_config.json
sed -i.bak s/##STORAGE_HOST##/$STORAGE_HOST/g /etc/ciao-webui/ciao_config.json
sed -i.bak s/##KEYSTONE_HOST##/$IDENTITY_HOST/g /etc/ciao-webui/ciao_config.json
sed -i.bak s/##CERT_PASS##/$CERT_PASS/g /etc/ciao-webui/ciao_config.json
+5
View File
@@ -5,6 +5,11 @@
"port": "8774",
"protocol": "https"
},
"storage":{
"host": "##STORAGE_HOST##",
"port": "8776",
"protocol": "https"
},
"keystone": {
"host": "##KEYSTONE_HOST##",
"port": "35357",