]> git.apps.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
facts: refact `ceph_uid` fact v4.0.34
authorGuillaume Abrioux <gabrioux@redhat.com>
Wed, 8 Jul 2020 13:49:47 +0000 (15:49 +0200)
committerDimitri Savineau <savineau.dimitri@gmail.com>
Mon, 21 Sep 2020 17:49:03 +0000 (13:49 -0400)
There's no need to set this fact with a `set_fact`
We can achieve this in `ceph-defaults`

Closes: https://bugzilla.redhat.com/show_bug.cgi?id=1875058
Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
(cherry picked from commit bcc673f66c22364766beb4b5ebb971bd3f517693)

group_vars/all.yml.sample
group_vars/rhcs.yml.sample
roles/ceph-defaults/defaults/main.yml
roles/ceph-facts/tasks/facts.yml

index c07ad158a461c78e524655d4615586262d563ec2..08721830eb779b2ec6614938851e929644d755fa 100644 (file)
@@ -255,7 +255,7 @@ dummy:
 
 #ceph_conf_key_directory: /etc/ceph
 
-#ceph_uid: 167
+#ceph_uid: "{{ '64045' if not containerized_deployment | bool and ansible_os_family == 'Debian' else '167' }}"
 
 # Permissions for keyring files in /etc/ceph
 #ceph_keyring_permissions: '0600'
index f3d23cd0e556b7384f6ab90111527581dffae394..d0ba2bf364ad6bdf076aa612d4806f436686621a 100644 (file)
@@ -255,7 +255,7 @@ ceph_iscsi_config_dev: false
 
 #ceph_conf_key_directory: /etc/ceph
 
-#ceph_uid: 167
+#ceph_uid: "{{ '64045' if not containerized_deployment | bool and ansible_os_family == 'Debian' else '167' }}"
 
 # Permissions for keyring files in /etc/ceph
 #ceph_keyring_permissions: '0600'
index 1873530f0707f64820988e4f3742a6a107764f1d..7a516b0dd17c642177395f1ffcc9ff0b56bc088b 100644 (file)
@@ -247,7 +247,7 @@ generate_fsid: true
 
 ceph_conf_key_directory: /etc/ceph
 
-ceph_uid: 167
+ceph_uid: "{{ '64045' if not containerized_deployment | bool and ansible_os_family == 'Debian' else '167' }}"
 
 # Permissions for keyring files in /etc/ceph
 ceph_keyring_permissions: '0600'
index 602c88bd40cb924d25f772266fe1cc1be266e303..1c7f970111dd6b6da0b4bd81a21025e25130bf3f 100644 (file)
     - item.value.holders|count == 0
     - item.key is not match osd_auto_discovery_exclude
 
-- name: set_fact ceph_uid for debian based system - non container
-  set_fact:
-    ceph_uid: 64045
-  when:
-    - not containerized_deployment | bool
-    - ansible_os_family == 'Debian'
-
 - name: backward compatibility tasks related
   when:
     - inventory_hostname in groups.get(rgw_group_name, [])