bugfix:修复TSG-X-0906下开启wannat功能导致sapp启动失败的bug
This commit is contained in:
@@ -111,6 +111,17 @@
|
||||
- /usr/lib/systemd/system/mrtunnat.service
|
||||
- /usr/lib/systemd/system/mrzcpd.service
|
||||
|
||||
- name: "replace action: replace service unit Requires and after option, TSG-X-0906"
|
||||
replace:
|
||||
path: "/usr/lib/systemd/system/mrzcpd.service"
|
||||
regexp: "{{ item.regexp }}"
|
||||
replace: "{{ item.replace }}"
|
||||
with_items:
|
||||
- { regexp: "Requires=mrenv.service",replace: "Requires=mrenv.service k3s.service"}
|
||||
- { regexp: "After=mrenv.service",replace: "After=mrenv.service k3s.service"}
|
||||
when:
|
||||
- runtime_env == 'TSG-X-P0906'
|
||||
|
||||
##################### mrzcpd #####################
|
||||
- name: "enable mrenv"
|
||||
systemd:
|
||||
|
||||
@@ -119,6 +119,7 @@
|
||||
- /target_config/opt/tsg/tfe/conf/tfe
|
||||
- /target_config/opt/tsg/tfe/conf/pangu
|
||||
- /target_config/opt/tsg/certstore/conf
|
||||
- /target_config/opt/tsg/sapp/etc/wire_graft
|
||||
- /target_config/etc/telegraf
|
||||
- /target_config/opt/tsg/etc
|
||||
- /target_config/etc/default
|
||||
@@ -180,6 +181,12 @@
|
||||
dest: /target_config/opt/tsg/sapp/etc/wannat/wangw.conf
|
||||
tags: wangw
|
||||
|
||||
- name: "tsg-os-provision: template wire_graft.conf file"
|
||||
template:
|
||||
src: "../templates/wire_graft.conf.j2"
|
||||
dest: /target_config/opt/tsg/sapp/etc/wire_graft/wire_graft.conf
|
||||
tags: wire_graft
|
||||
|
||||
- name: "tsg-os-provision: template the tfe.conf"
|
||||
template:
|
||||
src: "../templates/tfe.conf.j2"
|
||||
@@ -207,7 +214,7 @@
|
||||
tags: telegraf_statistic
|
||||
|
||||
- name: "create tap device ctrl_mock"
|
||||
shell: ip tuntap add mode tap ctrl_mock; ifconfig ctrl_mock up; ifconfig ctrl_mock {{ policy_and_log_nic_ip }}/32
|
||||
shell: ip tuntap add mode tap ctrl_mock; ifconfig ctrl_mock up; ifconfig ctrl_mock {{ policy_and_log_nic_ip }}/32; ifconfig ctrl_mock mtu 2000
|
||||
|
||||
- name: "create tap device tap0"
|
||||
shell: ip tuntap add dev tap0 mode tap multi_queue
|
||||
|
||||
@@ -128,6 +128,9 @@ spec:
|
||||
- name: config-volume
|
||||
mountPath: "/opt/tsg/tfe/conf/pangu/pangu_pxy.conf"
|
||||
subPath: "opt/tsg/tfe/conf/pangu/pangu_pxy.conf"
|
||||
- name: config-volume
|
||||
mountPath: "/opt/tsg/sapp/etc/wire_graft/wire_graft.conf"
|
||||
subPath: "opt/tsg/sapp/etc/wire_graft/wire_graft.conf"
|
||||
- name: config-volume
|
||||
mountPath: "/opt/tsg/etc/tsg_sn.json"
|
||||
subPath: "opt/tsg/etc/tsg_sn.json"
|
||||
|
||||
Reference in New Issue
Block a user