summaryrefslogtreecommitdiffstats
path: root/k8s-bootstrap-container/load-blueprints.sh
blob: ae7dc915d33cd1d32aa4b8e2f4bfd290dc8ded70 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#!/bin/bash
# Load DCAE blueprints/inputs onto container
# $1 Blueprint repo base URL
# Expect blueprints to be at <base URL>/blueprints

set -x

BLUEPRINTS=\
"
k8s-config_binding_service.yaml  \
k8s-deployment_handler.yaml  \
k8s-holmes-engine.yaml \
k8s-holmes-rules.yaml \
k8s-inventory.yaml  \
k8s-policy_handler.yaml \
k8s-pgaas-initdb.yaml \
k8s-tca.yaml \
k8s-ves.yaml \
k8s-prh.yaml \
k8s-hv-ves.yaml
"

BPDEST=blueprints
mkdir ${BPDEST}

# Download blueprints
for bp in ${BLUEPRINTS}
do
    curl -Ss $1/blueprints/${bp} > ${BPDEST}/$(basename ${bp})
done