1 # Copyright 2020 Huawei Technologies Co., Ltd.
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
7 # http://www.apache.org/licenses/LICENSE-2.0
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.
16 - name: copy deploy folder to mecm host for installing APPLCM
21 - name: Generate Certificates
23 # yamllint disable rule:line-length
24 cmd: openssl genrsa -out ca.key 2048
25 chdir: /tmp/applcm/deploy/
27 - name: Generate Certificate - Step 2
29 cmd: openssl req -new -key ca.key -subj /C=CN/ST=Peking/L=Beijing/O=ealtedge/CN=www.ealtedge.org -out ca.csr
30 chdir: /tmp/applcm/deploy/
32 - name: Generate Root Certificate
34 cmd: openssl x509 -req -days 365 -in ca.csr -extensions v3_req -signkey ca.key -out trust.cer
35 chdir: /tmp/applcm/deploy/
37 - name: Generate Server Key
39 cmd: openssl genrsa -out server_key.pem 2048
40 chdir: /tmp/applcm/deploy/
43 - name: Generate Server CSR
45 cmd: openssl req -new -key server_key.pem -subj /C=CN/ST=Beijing/L=Beijing/O=ealtedge/CN=www.ealtedge.org -out tls.csr
46 chdir: /tmp/applcm/deploy/
48 - name: Generate Server Certificate
50 cmd: openssl x509 -req -in tls.csr -extensions v3_req -CA trust.cer -CAkey ca.key -CAcreateserial -out server.cer
51 chdir: /tmp/applcm/deploy/
53 - name: Create applcm-secret
55 # yamllint disable rule:line-length
56 cmd: kubectl create secret --namespace default generic applcm-secret --from-file=/tmp/applcm/deploy/server.cer --from-file=/tmp/applcm/deploy/server_key.pem --from-file=/tmp/applcm/deploy/trust.cer
58 - name: Install applcm postgres-configmap
60 cmd: kubectl apply -f /tmp/applcm/deploy/postgres-config.yaml
62 - name: Install applcm - pvc
64 cmd: kubectl apply -f /tmp/applcm/deploy/postgres-storage.yaml
66 - name: Install applcm - db
68 cmd: kubectl apply -f /tmp/applcm/deploy/postgres-k8s.yaml
70 - name: Install applcm - postgres-service
72 cmd: kubectl apply -f /tmp/applcm/deploy/postgres-service.yaml
74 - name: Install applcm - db-init-config
76 # yamllint disable rule:line-length
82 - name: Install applcm - helmplugin
86 - name: Install applcm - helmplugin
88 cmd: kubectl apply -f /tmp/applcm/deploy/helm-plugin-deployment.yaml
91 - name: Install applcm - helmplugin
95 - name: Install applcm - helmplugin
97 cmd: kubectl apply -f /tmp/applcm/deploy/helm-plugin-service.yaml
100 - name: Install applcm - helmplugin
104 - name: Install applcm - broker
106 cmd: kubectl apply -f /tmp/applcm/deploy/applcm-broker-deployment.yaml
108 - name: Install applcm - broker
110 cmd: kubectl apply -f /tmp/applcm/deploy/applcm-broker-service.yaml