1bdcec1c47573d0cc60e53225a6fd4ac82d9f970
[ealt-edge.git] / ocd / infra / playbooks / roles / service_center / tasks / install.yml
1 #
2 # Copyright 2020 Huawei Technologies Co., Ltd.
3 #
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
7 #
8 #     http://www.apache.org/licenses/LICENSE-2.0
9 #
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.
15 #
16
17 ---
18
19 - name: Doing deployment setup for service-center
20   copy:
21     src: deploy
22     dest: /tmp/service_center/
23
24 - name: Import config file
25   include_vars:
26     file: ../../../config.yml
27     name: vardata
28
29 - name: Setting pull image path
30   # yamllint disable rule:line-length
31   command: kubectl create secret docker-registry swrregcred --docker-server=https://swr.ap-southeast-1.myhuaweicloud.com/v2/ --docker-username={{ vardata.swrusr.name}} --docker-password={{ vardata.swrpass.name}}
32   # yamllint disable rule:line-length
33   args:
34     chdir: /tmp/service_center/deploy/
35
36 - name: Pull helm chart service center
37   # yamllint disable rule:line-length
38   command: helm install service-center-edgegallery edgegallery/servicecenter --set global.ssl.enabled=true --set global.ssl.secretName=edgegallery-ssl-secret
39   # yamllint disable rule:line-length