2 # Copyright 2020 Huawei Technologies Co., Ltd.
4 # Licensed under the Apache License, Version 2.0 (the "License");
5 # you may not use this file except in compliance with the License.
6 # You may obtain a copy of the License at
8 # http://www.apache.org/licenses/LICENSE-2.0
10 # Unless required by applicable law or agreed to in writing, software
11 # distributed under the License is distributed on an "AS IS" BASIS,
12 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 # See the License for the specific language governing permissions and
14 # limitations under the License.
19 - name: Doing deployment setup for edge gallery
22 dest: /tmp/eg_helm-repo/
24 - name: Import config file
26 file: ../../../config.yml
29 - name: Helm repo index edgegallery
30 command: helm repo index edgegallery/
32 chdir: /tmp/eg_helm-repo/deploy/helm/helm-charts/
34 - name: Helm repo index stable
35 command: helm repo index stable/
37 chdir: /tmp/eg_helm-repo/deploy/helm/helm-charts/
39 - name: Creating helm repo
40 # yamllint disable rule:line-length
41 command: docker run --name helm-repo -v /tmp/eg_helm-repo/deploy/helm/helm-charts/:/usr/share/nginx/html:ro -d -p 8080:80 nginx:stable
43 chdir: /tmp/eg_helm-repo/deploy/helm/helm-charts/
45 - name: Helm repo add edgegallery
46 # yamllint disable rule:line-length
47 command: helm repo add edgegallery http://{{ vardata.private_repo_ip.name}}:8080/edgegallery
49 chdir: /tmp/eg_helm-repo/deploy/helm/helm-charts/
51 - name: Helm repo add stable
52 command: helm repo add stable http://{{ vardata.private_repo_ip.name}}:8080/stable
54 chdir: /tmp/eg_helm-repo/deploy/helm/helm-charts/
57 msg: "Helm repo created"