docker2podman: set disk_list for non lvm scenario

When using non lvm scenarios (collocated or non-collocated) then the
disk_list variable isn't set because this is done during the ceph-osd
role (start_osds.yml) which isn't executed in the docker2podman
playbook.

Closes: https://bugzilla.redhat.com/show_bug.cgi?id=1862046

Signed-off-by: Dimitri Savineau <dsavinea@redhat.com>
pull/5632/head v3.2.47
Dimitri Savineau 2020-07-30 09:54:33 -04:00 committed by Dimitri Savineau
parent 54b55c8bac
commit 70469a69e4
5 changed files with 17 additions and 1 deletions

View File

@ -97,6 +97,14 @@
tasks_from: systemd.yml
when: inventory_hostname in groups.get(nfs_group_name, [])
- name: set_fact disk_list
set_fact:
disk_list:
rc: 0
when:
- inventory_hostname in groups.get(osd_group_name, [])
- osd_scenario != 'lvm'
- import_role:
name: ceph-osd
tasks_from: systemd.yml

View File

@ -0,0 +1,7 @@
---
osd_objectstore: "bluestore"
osd_scenario: collocated
devices:
- /dev/sda
- /dev/sdb
- /dev/sdc

View File

@ -3,6 +3,7 @@ mon0
[osds]
osd0
osd1
[mgrs]
mon0

View File

@ -5,7 +5,7 @@ docker: True
# DEFINE THE NUMBER OF VMS TO RUN
mon_vms: 1
osd_vms: 1
osd_vms: 2
mds_vms: 0
rgw_vms: 1
nfs_vms: 1