diff options
author | Jack Lucas <jflucas@research.att.com> | 2020-03-02 11:07:31 -0500 |
---|---|---|
committer | Jack Lucas <jflucas@research.att.com> | 2020-03-02 22:34:00 -0500 |
commit | a25c92363d1fdb3b3f9fc91203912febc19ed3c0 (patch) | |
tree | dc95b68c792bcfb409d67d7b12e42cd848cf674b /scripts/bootstrap.sh | |
parent | 0bc07ad3d16ccc2a6ca032951093866eec5d5d95 (diff) |
Load blueprint into DCAE inventory at boot
Load k8splugin 2.0.0 in addition to 1.7.2
Issue-ID: DCAEGEN2-2049
Issue-ID: DCAEGEN2-1938
Signed-off-by: Jack Lucas <jflucas@research.att.com>
Change-Id: I5306bf54b0c443b83fb6dc5afb60b07e87d741e6
Diffstat (limited to 'scripts/bootstrap.sh')
-rwxr-xr-x | scripts/bootstrap.sh | 13 |
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!" |