default: define 'osd_scenario' variable

osd_scenario does not exist in the ceph-default role so if we try to
play ceph-default on an OSD node, the playbook will fail with undefined
variable.

Signed-off-by: Sébastien Han <seb@redhat.com>
pull/2386/head
Sébastien Han 2018-02-08 14:51:15 +01:00 committed by Guillaume Abrioux
parent e537779bb3
commit 22f843e3d4
1 changed files with 3 additions and 3 deletions

View File

@ -151,7 +151,7 @@
when:
- inventory_hostname in groups.get(osd_group_name, [])
- not osd_auto_discovery|default(False)
- osd_scenario != 'lvm'
- osd_scenario|default('dummy') != 'lvm'
- name: set_fact build devices from resolved symlinks
set_fact:
@ -160,7 +160,7 @@
when:
- inventory_hostname in groups.get(osd_group_name, [])
- not osd_auto_discovery|default(False)
- osd_scenario != 'lvm'
- osd_scenario|default('dummy') != 'lvm'
- name: set_fact build final devices list
set_fact:
@ -168,7 +168,7 @@
when:
- inventory_hostname in groups.get(osd_group_name, [])
- not osd_auto_discovery|default(False)
- osd_scenario != 'lvm'
- osd_scenario|default('dummy') != 'lvm'
- name: set_fact ceph_uid for Debian based system
set_fact: