mirror of https://github.com/ceph/ceph-ansible.git
35 lines
1.1 KiB
YAML
35 lines
1.1 KiB
YAML
---
|
|
- name: configure TCMALLOC_MAX_TOTAL_THREAD_CACHE_BYTES for debian
|
|
lineinfile:
|
|
dest: "{{ etc_default_ceph.stat.isdir | ternary('/etc/default/ceph/ceph', '/etc/default/ceph') }}"
|
|
insertafter: EOF
|
|
create: yes
|
|
regexp: "^TCMALLOC_MAX_TOTAL_THREAD_CACHE_BYTES="
|
|
line: "TCMALLOC_MAX_TOTAL_THREAD_CACHE_BYTES={{ ceph_tcmalloc_max_total_thread_cache }}"
|
|
when:
|
|
- ansible_facts['os_family'] == 'Debian'
|
|
- etc_default_ceph.stat.exists
|
|
notify:
|
|
- restart ceph mons
|
|
- restart ceph mgrs
|
|
- restart ceph osds
|
|
- restart ceph mdss
|
|
- restart ceph rgws
|
|
- restart ceph rbdmirrors
|
|
|
|
- name: configure TCMALLOC_MAX_TOTAL_THREAD_CACHE_BYTES for redhat
|
|
lineinfile:
|
|
dest: "/etc/sysconfig/ceph"
|
|
insertafter: EOF
|
|
create: yes
|
|
regexp: "^TCMALLOC_MAX_TOTAL_THREAD_CACHE_BYTES="
|
|
line: "TCMALLOC_MAX_TOTAL_THREAD_CACHE_BYTES={{ ceph_tcmalloc_max_total_thread_cache }}"
|
|
when: ansible_facts['os_family'] == 'RedHat'
|
|
notify:
|
|
- restart ceph mons
|
|
- restart ceph mgrs
|
|
- restart ceph osds
|
|
- restart ceph mdss
|
|
- restart ceph rgws
|
|
- restart ceph rbdmirrors
|