From: Arvind Patel Date: Wed, 22 Jul 2020 18:19:20 +0000 (+0530) Subject: Added Scripts for uncomment cert X-Git-Url: https://gerrit.akraino.org/r/gitweb?a=commitdiff_plain;h=c0cf1ae0f21fa08578c66ae41eb1c9503739ecde;p=ealt-edge.git Added Scripts for uncomment cert Change-Id: Ia7b643b00daf4060cff8586ac0e303a084101767 --- diff --git a/ocd/infra/playbooks/roles/mepserver/files/deploy/kongScript.sh b/ocd/infra/playbooks/roles/mepserver/files/deploy/kongScript.sh new file mode 100755 index 0000000..21cfcb8 --- /dev/null +++ b/ocd/infra/playbooks/roles/mepserver/files/deploy/kongScript.sh @@ -0,0 +1,27 @@ +# Copyright 2020 Huawei Technologies Co., Ltd. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +#Server is running on https port +sed -i 's/#- name/ - name/g' kong-k8s.yaml +sed -i 's/#value/ value/g' kong-k8s.yaml + + +sed -i 's/#volumeMounts/ volumeMounts/g' kong-k8s.yaml +sed -i 's/#- name/ - name/g' kong-k8s.yaml +sed -i 's/#mountPath/ mountPath/g' kong-k8s.yaml +sed -i 's/#readOnly/ readOnly/g' kong-k8s.yaml +sed -i 's/#volumes/ volumes/g' kong-k8s.yaml +sed -i 's/#- name/ - name/g' kong-k8s.yaml +sed -i 's/#secret/ secret/g' kong-k8s.yaml +sed -i 's/#secretName/ secretName/g' kong-k8s.yaml diff --git a/ocd/infra/playbooks/roles/mepserver/files/deploy/mepScript.sh b/ocd/infra/playbooks/roles/mepserver/files/deploy/mepScript.sh new file mode 100755 index 0000000..567fff7 --- /dev/null +++ b/ocd/infra/playbooks/roles/mepserver/files/deploy/mepScript.sh @@ -0,0 +1,24 @@ +# Copyright 2020 Huawei Technologies Co., Ltd. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +#- name: Server is running on http port" +sed -i 's/value: \"0\"/value: \"1"/g' mep-k8s.yaml +sed -i 's/#volumeMounts/ volumeMounts/g' mep-k8s.yaml +sed -i 's/#- name/ - name/g' mep-k8s.yaml +sed -i 's/#mountPath/ mountPath/g' mep-k8s.yaml +sed -i 's/#readOnly/ readOnly/g' mep-k8s.yaml +sed -i 's/#volumes/ volumes/g' mep-k8s.yaml +sed -i 's/#- name/ - name/g' mep-k8s.yaml +sed -i 's/#secret/ secret/g' mep-k8s.yaml +sed -i 's/#secretName/ secretName/g' mep-k8s.yaml