bugfix:删除TSG-X-P0906环境下workload.slice,user.slice,system.slice相关资源限制
This commit is contained in:
@@ -11,18 +11,21 @@
|
||||
mode: '0755'
|
||||
with_items:
|
||||
- /usr/lib/systemd/system/workload.slice.d/
|
||||
when: runtime_env != 'TSG-X-P0906'
|
||||
|
||||
- name: "copy 50-CPUShares.conf to workload.slice.d"
|
||||
copy:
|
||||
src: "{{ role_path }}/templates/override_workload_slice_cpu.conf.j2"
|
||||
dest: /usr/lib/systemd/system/workload.slice.d/50-CPUShares.conf
|
||||
mode: 0644
|
||||
when: runtime_env != 'TSG-X-P0906'
|
||||
|
||||
- name: "copy 50-MemoryLimit.conf to workload.slice.d"
|
||||
copy:
|
||||
src: "{{ role_path }}/templates/override_workload_slice_mem.conf.j2"
|
||||
dest: /usr/lib/systemd/system/workload.slice.d/50-MemoryLimit.conf
|
||||
mode: 0644
|
||||
when: runtime_env != 'TSG-X-P0906'
|
||||
|
||||
# user.slice
|
||||
- name: "Create /usr/lib/systemd/system/user.slice.d/ directory if it does not exist"
|
||||
@@ -32,18 +35,21 @@
|
||||
mode: '0755'
|
||||
with_items:
|
||||
- /usr/lib/systemd/system/user.slice.d/
|
||||
when: runtime_env != 'TSG-X-P0906'
|
||||
|
||||
- name: "copy 50-CPUShares.conf to user.slice.d"
|
||||
copy:
|
||||
src: "{{ role_path }}/templates/override_user_slice_cpu.conf.j2"
|
||||
dest: /usr/lib/systemd/system/user.slice.d/50-CPUShares.conf
|
||||
mode: 0644
|
||||
when: runtime_env != 'TSG-X-P0906'
|
||||
|
||||
- name: "copy 50-MemoryLimit.conf to user.slice.d"
|
||||
copy:
|
||||
src: "{{ role_path }}/templates/override_user_slice_mem.conf.j2"
|
||||
dest: /usr/lib/systemd/system/user.slice.d/50-MemoryLimit.conf
|
||||
mode: 0644
|
||||
when: runtime_env != 'TSG-X-P0906'
|
||||
|
||||
# system.slice
|
||||
- name: "Create /usr/lib/systemd/system/system.slice.d/ directory if it does not exist"
|
||||
@@ -53,18 +59,21 @@
|
||||
mode: '0755'
|
||||
with_items:
|
||||
- /usr/lib/systemd/system/system.slice.d/
|
||||
when: runtime_env != 'TSG-X-P0906'
|
||||
|
||||
- name: "copy 50-CPUShares.conf to system.slice.d"
|
||||
copy:
|
||||
src: "{{ role_path }}/templates/override_system_slice_cpu.conf.j2"
|
||||
dest: /usr/lib/systemd/system/system.slice.d/50-CPUShares.conf
|
||||
mode: 0644
|
||||
when: runtime_env != 'TSG-X-P0906'
|
||||
|
||||
- name: "copy 50-MemoryLimit.conf to system.slice.d"
|
||||
copy:
|
||||
src: "{{ role_path }}/templates/override_system_slice_mem.conf.j2"
|
||||
dest: /usr/lib/systemd/system/system.slice.d/50-MemoryLimit.conf
|
||||
mode: 0644
|
||||
when: runtime_env != 'TSG-X-P0906'
|
||||
|
||||
# 启用 IPMI
|
||||
- name: "copy ipmi.conf to /etc/sysconfig/ipmi"
|
||||
|
||||
Reference in New Issue
Block a user