From 4acb7424dd7c78f39b5a20b31612632f52a72cdc Mon Sep 17 00:00:00 2001 From: linxin Date: Mon, 22 Jan 2024 19:02:18 +0800 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20feat:TSG-18751?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ansible/roles/mrzcpd/files/helm/templates/_config.tpl | 5 +++++ .../roles/packet_adapter/files/helm/templates/_config.tpl | 5 +++++ .../files/helm/templates/deployment-firewall.yaml | 5 +++++ .../files/helm/templates/deployment-proxy.yaml | 5 +++++ .../files/helm/templates/deployment-service-chaining.yaml | 5 +++++ .../files/helm/templates/deployment-shaping.yaml | 5 +++++ 6 files changed, 30 insertions(+) diff --git a/ansible/roles/mrzcpd/files/helm/templates/_config.tpl b/ansible/roles/mrzcpd/files/helm/templates/_config.tpl index 09b94427..adc29b71 100644 --- a/ansible/roles/mrzcpd/files/helm/templates/_config.tpl +++ b/ansible/roles/mrzcpd/files/helm/templates/_config.tpl @@ -39,8 +39,13 @@ {{- define "mrzcpd.prestart" -}} {{- if eq .Values.mrzcpd.debug.enable_prestart_script .Values.define_enable_val_yes }} + echo WARNING: PRESTART.sh is enable, the commands in PRESTART.sh is: + cat /opt/tsg/scripts/prestart.sh + chmod 0755 /opt/tsg/scripts/prestart.sh /opt/tsg/scripts/prestart.sh + + echo PRESTART.sh has been exec...... {{- end }} {{- end -}} diff --git a/ansible/roles/packet_adapter/files/helm/templates/_config.tpl b/ansible/roles/packet_adapter/files/helm/templates/_config.tpl index 5164b230..b47afe9e 100644 --- a/ansible/roles/packet_adapter/files/helm/templates/_config.tpl +++ b/ansible/roles/packet_adapter/files/helm/templates/_config.tpl @@ -112,7 +112,12 @@ {{- define "traffic-engine.inject_adapter.prestart" -}} {{- if eq .Values.debug.inject_adapter.enable_prestart_script .Values.define_enable_val_yes }} + echo WARNING: PRESTART.sh is enable, the commands in PRESTART.sh is: + cat /opt/tsg/scripts/prestart.sh + chmod 0755 /opt/tsg/scripts/prestart.sh /opt/tsg/scripts/prestart.sh + + echo PRESTART.sh has been exec...... {{- end }} {{- end -}} diff --git a/ansible/roles/traffic-engine/files/helm/templates/deployment-firewall.yaml b/ansible/roles/traffic-engine/files/helm/templates/deployment-firewall.yaml index 9cca8615..d1f46cd3 100644 --- a/ansible/roles/traffic-engine/files/helm/templates/deployment-firewall.yaml +++ b/ansible/roles/traffic-engine/files/helm/templates/deployment-firewall.yaml @@ -56,8 +56,13 @@ spec: sed -Ei -c "s|SD_POLICY_LOCAL_CACHE_IP_LOCATION|${SD_POLICY_LOCAL_CACHE_IP?}|g" /opt/tsg/sapp/tsgconf/maat.conf {{- end }} {{- if eq .Values.debug.firewall.enable_prestart_script .Values.define_enable_val_yes }} + echo WARNING: PRESTART.sh is enable, the commands in PRESTART.sh is: + cat /opt/tsg/scripts/prestart.sh + chmod 0755 /opt/tsg/scripts/prestart.sh /opt/tsg/scripts/prestart.sh + + echo PRESTART.sh has been exec...... {{- end }} {{- if eq .Values.debug.firewall.enable_interactive_startup .Values.define_enable_val_yes }} while true; do sleep 10;done diff --git a/ansible/roles/traffic-engine/files/helm/templates/deployment-proxy.yaml b/ansible/roles/traffic-engine/files/helm/templates/deployment-proxy.yaml index 9dd7a9fd..f787bec6 100644 --- a/ansible/roles/traffic-engine/files/helm/templates/deployment-proxy.yaml +++ b/ansible/roles/traffic-engine/files/helm/templates/deployment-proxy.yaml @@ -52,8 +52,13 @@ spec: sed -Ei -c "s|CM_POLICY_LOCAL_CACHE_IP_LOCATION|${CM_POLICY_LOCAL_CACHE_IP?}|g" /opt/tsg/tfe/conf/tfe/tfe.conf {{- end }} {{- if eq .Values.debug.proxy.enable_prestart_script .Values.define_enable_val_yes }} + echo WARNING: PRESTART.sh is enable, the commands in PRESTART.sh is: + cat /opt/tsg/scripts/prestart.sh + chmod 0755 /opt/tsg/scripts/prestart.sh /opt/tsg/scripts/prestart.sh + + echo PRESTART.sh has been exec...... {{- end }} {{- if eq .Values.debug.proxy.enable_interactive_startup .Values.define_enable_val_yes }} while true; do sleep 10;done diff --git a/ansible/roles/traffic-engine/files/helm/templates/deployment-service-chaining.yaml b/ansible/roles/traffic-engine/files/helm/templates/deployment-service-chaining.yaml index b426a9b8..552a1bbb 100644 --- a/ansible/roles/traffic-engine/files/helm/templates/deployment-service-chaining.yaml +++ b/ansible/roles/traffic-engine/files/helm/templates/deployment-service-chaining.yaml @@ -52,8 +52,13 @@ spec: sed -Ei -c "s|CM_POLICY_LOCAL_CACHE_IP_LOCATION|${CM_POLICY_LOCAL_CACHE_IP?}|g" /opt/tsg/sce/conf/sce.conf {{- end }} {{- if eq .Values.debug.service_chaining.enable_prestart_script .Values.define_enable_val_yes }} + echo WARNING: PRESTART.sh is enable, the commands in PRESTART.sh is: + cat /opt/tsg/scripts/prestart.sh + chmod 0755 /opt/tsg/scripts/prestart.sh /opt/tsg/scripts/prestart.sh + + echo PRESTART.sh has been exec...... {{- end }} {{- if eq .Values.debug.service_chaining.enable_interactive_startup .Values.define_enable_val_yes }} while true; do sleep 10;done diff --git a/ansible/roles/traffic-engine/files/helm/templates/deployment-shaping.yaml b/ansible/roles/traffic-engine/files/helm/templates/deployment-shaping.yaml index 485dde4c..1dc04285 100644 --- a/ansible/roles/traffic-engine/files/helm/templates/deployment-shaping.yaml +++ b/ansible/roles/traffic-engine/files/helm/templates/deployment-shaping.yaml @@ -62,8 +62,13 @@ spec: sed -Ei -c "s|CLUSTER_ANNOUNCE_PORT_LOCATION|${CLUSTER_ANNOUNCE_PORT?}|g" /opt/tsg/shaping_engine/conf/shaping.conf sed -Ei -c "s|HEALTH_CHECK_ANNOUNCE_PORT_LOCATION|${HEALTH_CHECK_ANNOUNCE_PORT?}|g" /opt/tsg/shaping_engine/conf/shaping.conf {{- if eq .Values.debug.shaping.enable_prestart_script .Values.define_enable_val_yes }} + echo WARNING: PRESTART.sh is enable, the commands in PRESTART.sh is: + cat /opt/tsg/scripts/prestart.sh + chmod 0755 /opt/tsg/scripts/prestart.sh /opt/tsg/scripts/prestart.sh + + echo PRESTART.sh has been exec...... {{- end }} {{- if eq .Values.debug.shaping.enable_interactive_startup .Values.define_enable_val_yes }} while true; do sleep 10;done