]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
facts: refact `ceph_uid` fact
authorGuillaume Abrioux <gabrioux@redhat.com>
Wed, 8 Jul 2020 13:49:47 +0000 (15:49 +0200)
committerGuillaume Abrioux <gabrioux@redhat.com>
Thu, 9 Jul 2020 11:37:29 +0000 (13:37 +0200)
There's no need to set this fact with a `set_fact`
We can achieve this in `ceph-defaults`

Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
group_vars/all.yml.sample
group_vars/rhcs.yml.sample
roles/ceph-defaults/defaults/main.yml
roles/ceph-facts/tasks/facts.yml

index 8346974a56e895fc9dd34c837ceafba7cd986a9e..083070f187bee26341c2505b0693ea1c847e679f 100644 (file)
@@ -257,7 +257,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 5c847705de575d4a8870ad8d5bb30c5215df016f..ad8c6511e133b639d836451e73103a8134b2d307 100644 (file)
@@ -257,7 +257,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 2561737436b88ead3d1efa9d005a429a1f638784..621307115fef0edb8d510d814cfea009cd2b86c7 100644 (file)
@@ -249,7 +249,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 39936582848edb399f8fa1df0f35b190f96637a0..0a3d971ea68c2a96ba4fb1cc223a2c652e8ebea3 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: set_fact rgw_hostname
   set_fact:
     rgw_hostname: "{% set _value = ansible_hostname -%}