Added Scripts for uncomment cert 37/3637/1
authorArvind Patel <arvind.patel@huawei.com>
Wed, 22 Jul 2020 18:19:20 +0000 (23:49 +0530)
committerArvind Patel <arvind.patel@huawei.com>
Wed, 22 Jul 2020 18:19:20 +0000 (23:49 +0530)
Change-Id: Ia7b643b00daf4060cff8586ac0e303a084101767

ocd/infra/playbooks/roles/mepserver/files/deploy/kongScript.sh [new file with mode: 0755]
ocd/infra/playbooks/roles/mepserver/files/deploy/mepScript.sh [new file with mode: 0755]

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 (executable)
index 0000000..21cfcb8
--- /dev/null
@@ -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 (executable)
index 0000000..567fff7
--- /dev/null
@@ -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