Modified playbook for bug fixing
[ealt-edge.git] / ocd / infra / playbooks / roles / applcm / tasks / install.yml
1 # Copyright 2020 Huawei Technologies Co., Ltd.
2 #
3 # Licensed under the Apache License, Version 2.0 (the "License");
4 # you may not use this file except in compliance with the License.
5 # You may obtain a copy of the License at
6 #
7 #     http://www.apache.org/licenses/LICENSE-2.0
8 #
9 # Unless required by applicable law or agreed to in writing, software
10 # distributed under the License is distributed on an "AS IS" BASIS,
11 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 # See the License for the specific language governing permissions and
13 # limitations under the License.
14
15 ---
16 - name: copy deploy folder to mecm host for installing APPLCM
17   copy:
18     src: deploy
19     dest: /tmp/applcm/
20
21 - name: Install applcm - pvc
22   shell:
23     cmd: kubectl apply -f /tmp/applcm/deploy/postgres-db-pvc.yaml
24
25 - name: Install applcm - db
26   shell:
27     cmd: kubectl apply -f /tmp/applcm/deploy/postgres-k8s.yaml
28
29 - name: Install applcm - db-init-config
30   shell:
31 # yamllint disable rule:line-length
32     cmd: sleep 10;
33   ignore_errors: yes
34   failed_when: false
35   no_log: True
36
37 - name: Install applcm - helmplugin
38   shell:
39     cmd: sleep 10
40
41 - name: Install applcm - helmplugin
42   shell:
43     cmd: kubectl apply -f /tmp/applcm/deploy/helm-plugin-deployment.yaml
44
45
46 - name: Install applcm - helmplugin
47   shell:
48     cmd: sleep 10
49
50 - name: Install applcm - helmplugin
51   shell:
52     cmd: kubectl apply -f /tmp/applcm/deploy/helm-plugin-service.yaml
53
54
55 - name: Install applcm - helmplugin
56   shell:
57     cmd: sleep 10
58
59 - name: Install applcm - broker
60   shell:
61     cmd: kubectl apply -f /tmp/applcm/deploy/applcm-broker-deployment.yaml
62
63 - name: Install applcm - broker
64   shell:
65     cmd: kubectl apply -f /tmp/applcm/deploy/applcm-broker-service.yaml