Skip to content

Commit

Permalink
facts: refact ceph_uid fact
Browse files Browse the repository at this point in the history
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>
(cherry picked from commit bcc673f)
  • Loading branch information
guits authored and dsavineau committed Sep 21, 2020
1 parent c0654fa commit b714e04
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 10 deletions.
2 changes: 1 addition & 1 deletion group_vars/all.yml.sample
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down
2 changes: 1 addition & 1 deletion group_vars/rhcs.yml.sample
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down
2 changes: 1 addition & 1 deletion roles/ceph-defaults/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down
7 changes: 0 additions & 7 deletions roles/ceph-facts/tasks/facts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -212,13 +212,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, [])
Expand Down

0 comments on commit b714e04

Please sign in to comment.