From bf1e70e8cf09910a43921bc180543c38e6609d71 Mon Sep 17 00:00:00 2001 From: =?utf8?q?S=C3=A9bastien=20Han?= Date: Fri, 13 Apr 2018 19:42:17 +0200 Subject: [PATCH] default: extent ceph_uid and gid MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit We now have the ability to detect the uid/gid of the ceph user depending on the distribution we are running on and so we are doing non-container deployements. Signed-off-by: Sébastien Han --- roles/ceph-defaults/tasks/facts.yml | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/roles/ceph-defaults/tasks/facts.yml b/roles/ceph-defaults/tasks/facts.yml index b029b6ceb..eb927bcb4 100644 --- a/roles/ceph-defaults/tasks/facts.yml +++ b/roles/ceph-defaults/tasks/facts.yml @@ -180,14 +180,28 @@ - not osd_auto_discovery|default(False) - osd_scenario|default('dummy') != 'lvm' -- name: set_fact ceph_uid for debian based system +- name: set_fact ceph_uid for debian based system - non container + set_fact: + ceph_uid: 64045 + when: + - not containerized_deployment + - ansible_os_family == 'Debian' + +- name: set_fact ceph_uid for red hat based system - non container + set_fact: + ceph_uid: 167 + when: + - not containerized_deployment + - ansible_os_family == 'RedHat' + +- name: set_fact ceph_uid for debian based system - container set_fact: ceph_uid: 64045 when: - containerized_deployment - ceph_docker_image_tag | search("ubuntu") -- name: set_fact ceph_uid for red hat based system +- name: set_fact ceph_uid for red hat based system - container set_fact: ceph_uid: 167 when: -- 2.39.5