Jack Lucas | 230ae89 | 2018-03-27 00:04:46 -0400 | [diff] [blame] | 1 | #!/bin/bash |
Jack Lucas | 5caf165 | 2019-02-08 14:21:58 -0500 | [diff] [blame] | 2 | # ================================================================================ |
Jack Lucas | 89bde25 | 2020-01-22 18:32:48 -0500 | [diff] [blame^] | 3 | # Copyright (c) 2018-2020 AT&T Intellectual Property. All rights reserved. |
Jack Lucas | 5caf165 | 2019-02-08 14:21:58 -0500 | [diff] [blame] | 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========================================================= |
Jack Lucas | 230ae89 | 2018-03-27 00:04:46 -0400 | [diff] [blame] | 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 |
Jack Lucas | a73e3e7 | 2020-01-10 14:14:33 -0500 | [diff] [blame] | 22 | set -e |
Jack Lucas | 230ae89 | 2018-03-27 00:04:46 -0400 | [diff] [blame] | 23 | |
| 24 | BLUEPRINTS=\ |
| 25 | " |
Jack Lucas | bac8d42 | 2018-04-27 22:11:51 +0000 | [diff] [blame] | 26 | k8s-holmes-engine.yaml \ |
| 27 | k8s-holmes-rules.yaml \ |
Jack Lucas | bac8d42 | 2018-04-27 22:11:51 +0000 | [diff] [blame] | 28 | k8s-pgaas-initdb.yaml \ |
| 29 | k8s-tca.yaml \ |
burdziak | d0afc3c | 2018-06-04 10:40:41 +0200 | [diff] [blame] | 30 | k8s-ves.yaml \ |
Jakub Dudycz | 1e818c6 | 2018-09-13 12:51:23 +0200 | [diff] [blame] | 31 | k8s-prh.yaml \ |
wasala | 4251730 | 2018-09-19 13:51:36 +0200 | [diff] [blame] | 32 | k8s-hv-ves.yaml \ |
Vijay Venkatesh Kumar | d2c8212 | 2019-04-05 00:38:59 +0000 | [diff] [blame] | 33 | k8s-helm-override.yaml \ |
Jack Lucas | b36dee4 | 2019-07-22 11:06:29 -0400 | [diff] [blame] | 34 | k8s-helm.yaml |
Jack Lucas | 230ae89 | 2018-03-27 00:04:46 -0400 | [diff] [blame] | 35 | " |
| 36 | |
| 37 | BPDEST=blueprints |
| 38 | mkdir ${BPDEST} |
| 39 | |
| 40 | # Download blueprints |
| 41 | for bp in ${BLUEPRINTS} |
| 42 | do |
Jack Lucas | a73e3e7 | 2020-01-10 14:14:33 -0500 | [diff] [blame] | 43 | curl -Ssf $1/blueprints/${bp} > ${BPDEST}/$(basename ${bp}) |
vagrant | 6ccc560 | 2018-09-16 07:00:06 +0000 | [diff] [blame] | 44 | done |