summaryrefslogtreecommitdiffstats
path: root/scripts/bootstrap.sh
diff options
context:
space:
mode:
authorVijay Venkatesh Kumar <vv770d@att.com>2020-03-03 15:09:39 +0000
committerGerrit Code Review <gerrit@onap.org>2020-03-03 15:09:39 +0000
commit491105a0e6d2cf27a1f7b8397935c1ea62078ccc (patch)
tree8da1b9e93a81804a226be3e7eba6714aceb29ae0 /scripts/bootstrap.sh
parentbac353ff11378f9ad5040ba43550d182b3687400 (diff)
parenta25c92363d1fdb3b3f9fc91203912febc19ed3c0 (diff)
Merge "Load blueprint into DCAE inventory at boot"1.10.0
Diffstat (limited to 'scripts/bootstrap.sh')
-rwxr-xr-xscripts/bootstrap.sh13
1 files changed, 11 insertions, 2 deletions
diff --git a/scripts/bootstrap.sh b/scripts/bootstrap.sh
index 909c203..9fe7cd0 100755
--- a/scripts/bootstrap.sh
+++ b/scripts/bootstrap.sh
@@ -40,12 +40,13 @@ CMPROTO=${CMPROTO:-http}
CMPORT=${CMPORT:-80}
# Set up additional parameters for using HTTPS
+CACERT="/certs/cacert.pem"
CFYTLS=""
CURLTLS=""
if [ $CMPROTO = "https" ]
then
- CFYTLS="--rest-certificate /certs/cacert.pem --ssl"
- CURLTLS="--cacert /certs/cacert.pem"
+ CFYTLS="--rest-certificate $CACERT --ssl"
+ CURLTLS="--cacert $CACERT"
fi
### FUNCTION DEFINITIONS ###
@@ -230,6 +231,14 @@ deploy holmes_engine k8s-holmes-engine.yaml k8s-holmes_engine-inputs.yaml
# Display deployments, for debugging purposes
cfy deployments list
+# Load blueprints into DCAE inventory as
+# DCAE service types
+. /scripts/inventory.sh
+for BP in /blueprints/*.yaml
+do
+ upload_service_type $BP $CACERT
+done
+
# Continue running
keep_running "Finished bootstrap steps."
echo "Exiting!"