blob: 3784d84587f791754c0ee8850a6c7ab8125aa5a3 [file] [log] [blame]
Jack Lucas230ae892018-03-27 00:04:46 -04001#!/bin/bash
Jack Lucas5caf1652019-02-08 14:21:58 -05002# ================================================================================
Jack Lucas89bde252020-01-22 18:32:48 -05003# Copyright (c) 2018-2020 AT&T Intellectual Property. All rights reserved.
Jack Lucas5caf1652019-02-08 14:21:58 -05004# ================================================================================
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=========================================================
Jack Lucas230ae892018-03-27 00:04:46 -040017# Load DCAE blueprints/inputs onto container
18# $1 Blueprint repo base URL
19# Expect blueprints to be at <base URL>/blueprints
20
21set -x
Jack Lucasa73e3e72020-01-10 14:14:33 -050022set -e
Jack Lucas230ae892018-03-27 00:04:46 -040023
24BLUEPRINTS=\
25"
Jack Lucasbac8d422018-04-27 22:11:51 +000026k8s-holmes-engine.yaml \
27k8s-holmes-rules.yaml \
Jack Lucasbac8d422018-04-27 22:11:51 +000028k8s-pgaas-initdb.yaml \
29k8s-tca.yaml \
burdziakd0afc3c2018-06-04 10:40:41 +020030k8s-ves.yaml \
Jakub Dudycz1e818c62018-09-13 12:51:23 +020031k8s-prh.yaml \
wasala42517302018-09-19 13:51:36 +020032k8s-hv-ves.yaml \
Vijay Venkatesh Kumard2c82122019-04-05 00:38:59 +000033k8s-helm-override.yaml \
Jack Lucasb36dee42019-07-22 11:06:29 -040034k8s-helm.yaml
Jack Lucas230ae892018-03-27 00:04:46 -040035"
36
37BPDEST=blueprints
38mkdir ${BPDEST}
39
40# Download blueprints
41for bp in ${BLUEPRINTS}
42do
Jack Lucasa73e3e72020-01-10 14:14:33 -050043 curl -Ssf $1/blueprints/${bp} > ${BPDEST}/$(basename ${bp})
vagrant6ccc5602018-09-16 07:00:06 +000044done