From: Guillaume Abrioux Date: Wed, 8 Jul 2020 13:49:47 +0000 (+0200) Subject: facts: refact `ceph_uid` fact X-Git-Tag: v4.0.34 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=f9d4eb8b410ab9e3e13c50b58a6198d41451297b;p=ceph-ansible.git facts: refact `ceph_uid` fact 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 (cherry picked from commit bcc673f66c22364766beb4b5ebb971bd3f517693) --- diff --git a/group_vars/all.yml.sample b/group_vars/all.yml.sample index c07ad158a..08721830e 100644 --- a/group_vars/all.yml.sample +++ b/group_vars/all.yml.sample @@ -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' diff --git a/group_vars/rhcs.yml.sample b/group_vars/rhcs.yml.sample index f3d23cd0e..d0ba2bf36 100644 --- a/group_vars/rhcs.yml.sample +++ b/group_vars/rhcs.yml.sample @@ -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' diff --git a/roles/ceph-defaults/defaults/main.yml b/roles/ceph-defaults/defaults/main.yml index 1873530f0..7a516b0dd 100644 --- a/roles/ceph-defaults/defaults/main.yml +++ b/roles/ceph-defaults/defaults/main.yml @@ -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' diff --git a/roles/ceph-facts/tasks/facts.yml b/roles/ceph-facts/tasks/facts.yml index 602c88bd4..1c7f97011 100644 --- a/roles/ceph-facts/tasks/facts.yml +++ b/roles/ceph-facts/tasks/facts.yml @@ -238,13 +238,6 @@ - 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, [])