From 2bf06246a86b492fa2d1e229e945c6bb7e150d97 Mon Sep 17 00:00:00 2001 From: Patrick Donnelly Date: Thu, 22 Sep 2016 23:00:02 -0400 Subject: [PATCH] ceph-common: install ceph-fuse on clients Fixes #985. Signed-off-by: Patrick Donnelly --- .../tasks/installs/install_on_redhat.yml | 24 +++++++++++++++++++ .../installs/install_rh_storage_on_debian.yml | 6 +++++ 2 files changed, 30 insertions(+) diff --git a/roles/ceph-common/tasks/installs/install_on_redhat.yml b/roles/ceph-common/tasks/installs/install_on_redhat.yml index b3561fdbc..8ce15734b 100644 --- a/roles/ceph-common/tasks/installs/install_on_redhat.yml +++ b/roles/ceph-common/tasks/installs/install_on_redhat.yml @@ -171,6 +171,30 @@ or ceph_dev or ceph_custom +- name: install distro or red hat storage ceph-fuse via yum + yum: + name: "ceph-fuse" + state: "{{ (upgrade_ceph_packages|bool) | ternary('latest','present') }}" + when: + - client_group_name in group_names + - ansible_pkg_mgr == "yum" + - (ceph_stable and ceph_stable_release not in ceph_stable_releases) + or ceph_origin == "distro" + or ceph_dev + or ceph_custom + +- name: install distro or red hat storage ceph-fuse via dnf + dnf: + name: "ceph-fuse" + state: "{{ (upgrade_ceph_packages|bool) | ternary('latest','present') }}" + when: + - client_group_name in group_names + - ansible_pkg_mgr == "dnf" + - (ceph_stable and ceph_stable_release not in ceph_stable_releases) + or ceph_origin == "distro" + or ceph_dev + or ceph_custom + - name: install distro or red hat storage ceph base via yum yum: name: "ceph-base" diff --git a/roles/ceph-common/tasks/installs/install_rh_storage_on_debian.yml b/roles/ceph-common/tasks/installs/install_rh_storage_on_debian.yml index b82ca8833..1a67ef6ce 100644 --- a/roles/ceph-common/tasks/installs/install_rh_storage_on_debian.yml +++ b/roles/ceph-common/tasks/installs/install_rh_storage_on_debian.yml @@ -69,6 +69,12 @@ state: "{{ (upgrade_ceph_packages|bool) | ternary('latest','present') }}" when: mds_group_name in group_names +- name: install red hat storage ceph-fuse client + apt: + pkg: ceph-fuse + state: "{{ (upgrade_ceph_packages|bool) | ternary('latest','present') }}" + when: client_group_name in group_names + - name: install red hat storage ceph-common apt: pkg: ceph-common -- 2.47.3