Skip to content

Commit e557778

Browse files
committed
Use ceph playbook located in hooks if available
The ceph playbook was moved to hooks/playbooks/ dir [1]. [1] openstack-k8s-operators/ci-framework#3154 Depends-On: openstack-k8s-operators/ci-framework#3154 Signed-off-by: Daniel Pawlik <[email protected]>
1 parent 0b8fa4b commit e557778

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

devsetup/tripleo/ceph.sh

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,13 @@ fi
2929

3030
cd ci-framework
3131
# create block devices on all compute nodes
32-
ansible-playbook -i $INV playbooks/ceph.yml --tags block -e cifmw_num_osds_perhost=2
32+
# TODO: Remove the condition when playbook migration process
33+
# is completed. More info: https://github.com/openstack-k8s-operators/ci-framework/pull/3154
34+
if [ -f hooks/playbooks/ceph.yml ]; then
35+
ansible-playbook -i "$INV" hooks/playbooks/ceph.yml --tags block -e cifmw_num_osds_perhost=2
36+
else
37+
ansible-playbook -i "$INV" playbooks/ceph.yml --tags block -e cifmw_num_osds_perhost=2
38+
fi
3339
cd ..
3440

3541
cat <<EOF > osd_spec.yaml

0 commit comments

Comments
 (0)