TSG-8288 TSG-OS中修改SAPP/TFE/CertStore的Service配置文件,增加Licence存储路径的环境变量
This commit is contained in:
@@ -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 }}"
|
||||
|
||||
@@ -0,0 +1,2 @@
|
||||
[Service]
|
||||
Environment=HASPUSER_PREFIX=/etc/tsg/licence/
|
||||
@@ -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"
|
||||
|
||||
@@ -1,2 +0,0 @@
|
||||
[Service]
|
||||
Environment="ZLOG_PROFILE_ERROR=/var/log/zlog.error.log"
|
||||
@@ -0,0 +1,3 @@
|
||||
[Service]
|
||||
Environment="ZLOG_PROFILE_ERROR=/var/log/zlog.error.log"
|
||||
Environment=HASPUSER_PREFIX=/etc/tsg/licence/
|
||||
@@ -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 }}"
|
||||
|
||||
2
ansible/roles/tfe/templates/service_override_env.conf.j2
Normal file
2
ansible/roles/tfe/templates/service_override_env.conf.j2
Normal file
@@ -0,0 +1,2 @@
|
||||
[Service]
|
||||
Environment=HASPUSER_PREFIX=/etc/tsg/licence/
|
||||
Reference in New Issue
Block a user