2 # Copyright 2020 Huawei Technologies Co., Ltd.
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
8 # http://www.apache.org/licenses/LICENSE-2.0
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.
19 - name: Doing deployment eg_mecm-mepm setup for edge gallery eg_mecm-mepm
22 dest: /tmp/eg_mecm-mepm/
26 file: ../../../config.yml
29 - name: Generates certificate one eg_mecm-mepm
30 # yamllint disable rule:line-length
31 command: kubectl create secret generic mecm-mepm-jwt-public-secret --from-file=publicKey=/tmp/.mep_tmp_cer/mepserver_encryptedtls.key
32 # yamllint disable rule:line-length
34 chdir: /tmp/.mep_tmp_cer/
36 - name: Generates certificate one eg_mecm-mepm
37 # yamllint disable rule:line-length
38 command: kubectl create secret generic mecm-mepm-ssl-secret --from-file=server_tls.key=/tmp/.mep_tmp_cer/mepserver_tls.key --from-file=server_tls.crt=/tmp/.mep_tmp_cer/mepserver_tls.crt --from-file=ca.crt=/tmp/.mep_tmp_cer/ca.crt
39 # yamllint disable rule:line-length
41 chdir: /tmp/.mep_tmp_cer/
43 - name: Generates certificate one eg_mecm-mepm
44 # yamllint disable rule:line-length
45 command: kubectl create secret generic edgegallery-mepm-secret --from-file=postgres_init.sql=/tmp/eg_mecm-mepm/deploy/conf/keys/postgres_init.sql --from-literal=postgresPassword={{ vardata.firstvar.name}} --from-literal=postgresLcmCntlrPassword={{ vardata.firstvar.name}} --from-literal=postgresk8sPluginPassword={{ vardata.firstvar.name}}
46 # yamllint disable rule:line-length
48 chdir: /tmp/.mep_tmp_cer/
50 - name: Generates certificate one eg_mecm-mepm
51 command: kubectl apply -f /tmp/eg_mecm-mepm/deploy/conf/manifest/mepm/mepm-service-account.yaml
53 chdir: /tmp/eg_mecm-mepm/deploy/
55 - name: Repo pulling for mecm-mepm
56 # yamllint disable rule:line-length
57 command: helm install mecm-mepm-edgegallery edgegallery/mecm-mepm --set jwt.publicKeySecretName=mecm-mepm-jwt-public-secret --set mepm.secretName=edgegallery-mepm-secret --set ssl.secretName=mecm-mepm-ssl-secret
58 # yamllint disable rule:line-length
60 chdir: /tmp/eg_mecm-mepm/deploy/