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: modifying configuration to support https
23 cmd: cp applcm-broker-deployment.yaml applcm-broker-deployment-ssl.yaml
24 chdir: /tmp/applcm/deploy/
26 - name: modify configuraiton to support https
28 cmd: chmod +x applcmScript.sh && ./applcmScript.sh
29 chdir: /tmp/applcm/deploy/
31 - name: Generate Certificates
33 # yamllint disable rule:line-length
34 cmd: openssl genrsa -out ca.key 2048
35 chdir: /tmp/applcm/deploy/
37 - name: Generate Certificate - Step 2
39 cmd: openssl req -new -key ca.key -subj /C=CN/ST=Peking/L=Beijing/O=ealtedge/CN=www.ealtedge.org -out ca.csr
40 chdir: /tmp/applcm/deploy/
42 - name: Generate Root Certificate
44 cmd: openssl x509 -req -days 365 -in ca.csr -extensions v3_req -signkey ca.key -out trust.cer
45 chdir: /tmp/applcm/deploy/
47 - name: Generate Server Key
49 cmd: openssl genrsa -out server_key.pem 2048
50 chdir: /tmp/applcm/deploy/
53 - name: Generate Server CSR
55 cmd: openssl req -new -key server_key.pem -subj /C=CN/ST=Beijing/L=Beijing/O=ealtedge/CN=www.ealtedge.org -out tls.csr
56 chdir: /tmp/applcm/deploy/
58 - name: Generate Server Certificate
60 cmd: openssl x509 -req -in tls.csr -extensions v3_req -CA trust.cer -CAkey ca.key -CAcreateserial -out server.cer
61 chdir: /tmp/applcm/deploy/
63 - name: Create applcm-secret
65 # yamllint disable rule:line-length
66 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
68 - name: Install applcm postgres-configmap
70 cmd: kubectl apply -f /tmp/applcm/deploy/postgres-config.yaml
72 - name: Install applcm - pvc
74 cmd: kubectl apply -f /tmp/applcm/deploy/postgres-storage.yaml
76 - name: Install applcm - db
78 cmd: kubectl apply -f /tmp/applcm/deploy/postgres-k8s.yaml
80 - name: Install applcm - postgres-service
82 cmd: kubectl apply -f /tmp/applcm/deploy/postgres-service.yaml
84 - name: Install applcm - db-init-config
86 # yamllint disable rule:line-length
92 - name: Install applcm - helmplugin
96 - name: Install applcm - helmplugin
98 cmd: kubectl apply -f /tmp/applcm/deploy/helm-plugin-deployment.yaml
101 - name: Install applcm - helmplugin
105 - name: Install applcm - helmplugin
107 cmd: kubectl apply -f /tmp/applcm/deploy/helm-plugin-service.yaml
110 - name: Install applcm - helmplugin
114 - name: Install applcm - broker
116 cmd: kubectl apply -f /tmp/applcm/deploy/applcm-broker-deployment-ssl.yaml
118 - name: Install applcm - broker
120 cmd: kubectl apply -f /tmp/applcm/deploy/applcm-broker-service.yaml