]> git.apps.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
default: extent ceph_uid and gid
authorSébastien Han <seb@redhat.com>
Fri, 13 Apr 2018 17:42:17 +0000 (19:42 +0200)
committerSébastien Han <seb@redhat.com>
Fri, 20 Apr 2018 13:48:32 +0000 (15:48 +0200)
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 <seb@redhat.com>
roles/ceph-defaults/tasks/facts.yml

index b029b6cebe0c318633795df95941bb6a916cad4f..eb927bcb4213bf6c95994d9ee7833917cd6153a1 100644 (file)
     - 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: