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: Changing permisiion
40 command: chmod -R 755 /tmp/eg_helm-repo
42 - name: Creating helm repo
43 # yamllint disable rule:line-length
44 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
46 chdir: /tmp/eg_helm-repo/deploy/helm/helm-charts/
48 - name: Helm repo add edgegallery
49 # yamllint disable rule:line-length
50 command: helm repo add edgegallery http://{{ vardata.private_repo_ip.name}}:8080/edgegallery
52 chdir: /tmp/eg_helm-repo/deploy/helm/helm-charts/
54 - name: Helm repo add stable
55 command: helm repo add stable http://{{ vardata.private_repo_ip.name}}:8080/stable
57 chdir: /tmp/eg_helm-repo/deploy/helm/helm-charts/
60 msg: "Helm repo created"