aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/bootstrap.sh
diff options
context:
space:
mode:
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!"