Skip to content

Commit 477535f

Browse files
Merge pull request #1083 from danpawlik/use-ceph-hooks
Use ceph playbook located in hooks if available
2 parents 0b8fa4b + e557778 commit 477535f

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)