]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
ceph-osd: Install numactl package when needed v3.2.9
authorDimitri Savineau <dsavinea@redhat.com>
Mon, 11 Mar 2019 14:44:47 +0000 (10:44 -0400)
committermergify[bot] <mergify[bot]@users.noreply.github.com>
Tue, 12 Mar 2019 08:14:47 +0000 (08:14 +0000)
With 3e32dce we can run OSD containers with numactl support.
When using numactl command in a containerized deployment we need to
be sure that the corresponding package is installed on the host.
The package installation is only executed when the
ceph_osd_numactl_opts variable isn't empty.

Signed-off-by: Dimitri Savineau <dsavinea@redhat.com>
(cherry picked from commit b7f4e3e7c7d73d931fd7fec4c940384c890dee42)

roles/ceph-osd/tasks/main.yml

index c99dc20eae13f4b7d8716c59bbd718379ec23f72..32184ab34e8c1451008d437da690cbc799fc4a4f 100644 (file)
     - not containerized_deployment
     - ansible_os_family != 'ClearLinux'
 
+- name: install numactl when needed
+  package:
+    name: numactl
+  register: result
+  until: result is succeeded
+  when:
+    - containerized_deployment
+    - ceph_osd_numactl_opts != ""
+  tags:
+    - with_pkg
+
 - name: include_tasks common.yml
   include_tasks: common.yml