Added deployment conf for applcm
[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 postgres-configmap
22   shell:
23     cmd: kubectl apply -f /tmp/applcm/deploy/postgres-config.yaml
24
25 - name: Install applcm - pvc
26   shell:
27     cmd: kubectl apply -f /tmp/applcm/deploy/postgres-storage.yaml
28
29 - name: Install applcm - db
30   shell:
31     cmd: kubectl apply -f /tmp/applcm/deploy/postgres-k8s.yaml
32
33 - name: Install applcm - postgres-service
34   shell:
35     cmd: kubectl apply -f /tmp/applcm/deploy/postgres-service.yaml
36
37 - name: Install applcm - db-init-config
38   shell:
39 # yamllint disable rule:line-length
40     cmd: sleep 10;
41   ignore_errors: yes
42   failed_when: false
43   no_log: True
44
45 - name: Install applcm - helmplugin
46   shell:
47     cmd: sleep 10
48
49 - name: Install applcm - helmplugin
50   shell:
51     cmd: kubectl apply -f /tmp/applcm/deploy/helm-plugin-deployment.yaml
52
53
54 - name: Install applcm - helmplugin
55   shell:
56     cmd: sleep 10
57
58 - name: Install applcm - helmplugin
59   shell:
60     cmd: kubectl apply -f /tmp/applcm/deploy/helm-plugin-service.yaml
61
62
63 - name: Install applcm - helmplugin
64   shell:
65     cmd: sleep 10
66
67 - name: Install applcm - broker
68   shell:
69     cmd: kubectl apply -f /tmp/applcm/deploy/applcm-broker-deployment.yaml
70
71 - name: Install applcm - broker
72   shell:
73     cmd: kubectl apply -f /tmp/applcm/deploy/applcm-broker-service.yaml