TSG-8288 TSG-OS中修改SAPP/TFE/CertStore的Service配置文件,增加Licence存储路径的环境变量

This commit is contained in:
luwenpeng
2021-11-02 11:55:48 +03:00
parent 7941550180
commit fc7885b44b
7 changed files with 21 additions and 4 deletions

View File

@@ -33,6 +33,12 @@
dest: /usr/lib/systemd/system/certstore.service.d/service_override_slice.conf
mode: 0644
- name: "copy env file to certstore.service.d"
copy:
src: "{{ role_path }}/templates/service_override_env.conf.j2"
dest: /usr/lib/systemd/system/certstore.service.d/service_override_env.conf
mode: 0644
- name: "Create /usr/lib/systemd/system/cert-redis.service.d directory if it does not exist"
file:
path: "{{ item }}"

View File

@@ -0,0 +1,2 @@
[Service]
Environment=HASPUSER_PREFIX=/etc/tsg/licence/

View File

@@ -155,8 +155,8 @@
- name: "copy env conf to sapp.service.d"
copy:
src: "{{ role_path }}/templates/service_env.conf.j2"
dest: /usr/lib/systemd/system/sapp.service.d/service_env.conf
src: "{{ role_path }}/templates/service_override_env.conf.j2"
dest: /usr/lib/systemd/system/sapp.service.d/service_override_env.conf
mode: 0644
- name: "copy fake promisc tools for tera mode - service file and scripts"

View File

@@ -1,2 +0,0 @@
[Service]
Environment="ZLOG_PROFILE_ERROR=/var/log/zlog.error.log"

View File

@@ -0,0 +1,3 @@
[Service]
Environment="ZLOG_PROFILE_ERROR=/var/log/zlog.error.log"
Environment=HASPUSER_PREFIX=/etc/tsg/licence/

View File

@@ -74,6 +74,12 @@
dest: /usr/lib/systemd/system/tfe.service.d/service_override_slice.conf
mode: 0644
- name: "copy env file to tfe.service.d"
copy:
src: "{{ role_path }}/templates/service_override_env.conf.j2"
dest: /usr/lib/systemd/system/tfe.service.d/service_override_env.conf
mode: 0644
- name: "replace action: replace service WantedBy from multi-user.target to workload.target"
replace:
path: "{{ item }}"

View File

@@ -0,0 +1,2 @@
[Service]
Environment=HASPUSER_PREFIX=/etc/tsg/licence/