From 1294d94850c0c641420ff718d3106de9814dc66b Mon Sep 17 00:00:00 2001 From: OrFriedmann Date: Wed, 5 Oct 2016 16:04:39 +0300 Subject: [PATCH 1/3] add repositories required for nfs-ganesha --- roles/ceph-common/tasks/installs/debian_ceph_repository.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/roles/ceph-common/tasks/installs/debian_ceph_repository.yml b/roles/ceph-common/tasks/installs/debian_ceph_repository.yml index d30bac9d3..b0fc2e5e0 100644 --- a/roles/ceph-common/tasks/installs/debian_ceph_repository.yml +++ b/roles/ceph-common/tasks/installs/debian_ceph_repository.yml @@ -46,7 +46,11 @@ - name: add gluster nfs ganesha repo apt_repository: - repo: "ppa:gluster/nfs-ganesha" + repo: "{{ item }}" state: present + with_items: + - ppa:gluster/libntirpc + - ppa:gluster/nfs-ganesha changed_when: false when: nfs_obj_gw or nfs_file_gw + From cbaa71d198af5bd46caffc89fdc9dd82e8dd69b9 Mon Sep 17 00:00:00 2001 From: OrFriedmann Date: Wed, 5 Oct 2016 16:07:25 +0300 Subject: [PATCH 2/3] add installation of jemalloc for nfs-ganesha --- .../tasks/installs/install_on_debian.yml | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/roles/ceph-common/tasks/installs/install_on_debian.yml b/roles/ceph-common/tasks/installs/install_on_debian.yml index 63e75393e..3a38271c8 100644 --- a/roles/ceph-common/tasks/installs/install_on_debian.yml +++ b/roles/ceph-common/tasks/installs/install_on_debian.yml @@ -39,8 +39,21 @@ default_release: "{{ ceph_stable_release_uca | default(ansible_distribution_release) }}{{ '-backports' if ceph_origin == 'distro' and ceph_use_distro_backports else ''}}" when: mds_group_name in group_names -- name: install NFS gateway +- name: install jemalloc apt: + pkg: libjemalloc1 + state: "{{ (upgrade_ceph_packages|bool) | ternary('latest','present') }}" + update_cache: yes + when: nfs_group_name in group_names + +- name: install jemalloc + apt: + pkg: libjemalloc1 + state: "{{ (upgrade_ceph_packages|bool) | ternary('latest','present') }}" + update_cache: yes + when: nfs_group_name in group_names + +- name: install NFS gateway apt: pkg: nfs-ganesha state: "{{ (upgrade_ceph_packages|bool) | ternary('latest','present') }}" update_cache: yes From 14bb9026b9b1afd3f90931df1ac8ff180113f63d Mon Sep 17 00:00:00 2001 From: OrFriedmann Date: Wed, 5 Oct 2016 16:13:30 +0300 Subject: [PATCH 3/3] Update install_on_debian.yml --- roles/ceph-common/tasks/installs/install_on_debian.yml | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/roles/ceph-common/tasks/installs/install_on_debian.yml b/roles/ceph-common/tasks/installs/install_on_debian.yml index 3a38271c8..d2f8ae49b 100644 --- a/roles/ceph-common/tasks/installs/install_on_debian.yml +++ b/roles/ceph-common/tasks/installs/install_on_debian.yml @@ -46,14 +46,8 @@ update_cache: yes when: nfs_group_name in group_names -- name: install jemalloc +- name: install NFS gateway apt: - pkg: libjemalloc1 - state: "{{ (upgrade_ceph_packages|bool) | ternary('latest','present') }}" - update_cache: yes - when: nfs_group_name in group_names - -- name: install NFS gateway apt: pkg: nfs-ganesha state: "{{ (upgrade_ceph_packages|bool) | ternary('latest','present') }}" update_cache: yes