e42a72ead7e083cfa82f0f3b44668cf99293bff0
[dcaegen2/deployments.git] / k8s-bootstrap-container / load-blueprints.sh
1 #!/bin/bash
2 # ================================================================================
3 # Copyright (c) 2018-2019 AT&T Intellectual Property. All rights reserved.
4 # ================================================================================
5 # Licensed under the Apache License, Version 2.0 (the "License");
6 # you may not use this file except in compliance with the License.
7 # You may obtain a copy of the License at
8 #
9 #     http://www.apache.org/licenses/LICENSE-2.0
10 #
11 # Unless required by applicable law or agreed to in writing, software
12 # distributed under the License is distributed on an "AS IS" BASIS,
13 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 # See the License for the specific language governing permissions and
15 # limitations under the License.
16 # ============LICENSE_END=========================================================
17 # Load DCAE blueprints/inputs onto container
18 # $1 Blueprint repo base URL
19 # Expect blueprints to be at <base URL>/blueprints
20
21 set -x
22
23 BLUEPRINTS=\
24 "
25 k8s-holmes-engine.yaml \
26 k8s-holmes-rules.yaml \
27 k8s-pgaas-initdb.yaml \
28 k8s-tca.yaml \
29 k8s-ves.yaml \
30 k8s-snmptrap.yaml \
31 k8s-prh.yaml \
32 k8s-hv-ves.yaml \
33 k8s-datafile-collector.yaml
34 "
35
36 BPDEST=blueprints
37 mkdir ${BPDEST}
38
39 # Download blueprints
40 for bp in ${BLUEPRINTS}
41 do
42     curl -Ss $1/blueprints/${bp} > ${BPDEST}/$(basename ${bp})
43 done