diff --git a/tests/scripts/vagrant_up.sh b/tests/scripts/vagrant_up.sh index a990b6b..5fd0d5a 100644 --- a/tests/scripts/vagrant_up.sh +++ b/tests/scripts/vagrant_up.sh @@ -1,5 +1,7 @@ #!/bin/bash +set -ex + if [[ "${CEPH_ANSIBLE_VAGRANT_BOX}" =~ "centos/stream" ]]; then EL_VERSION="${CEPH_ANSIBLE_VAGRANT_BOX: -1}" LATEST_IMAGE="$(curl -s https://cloud.centos.org/centos/${EL_VERSION}-stream/x86_64/images/CHECKSUM | sed -nE 's/^SHA256.*\((.*-([0-9]+).*vagrant-libvirt.box)\).*$/\1/p' | sort -u | tail -n1)" diff --git a/validate/preflight.yml b/validate/preflight.yml index 9497e07..08a90b6 100644 --- a/validate/preflight.yml +++ b/validate/preflight.yml @@ -19,7 +19,7 @@ msg: "You must define 'ceph_custom_repositories' or 'custom_repo_url' when ceph_origin is 'custom'" when: - ceph_origin == 'custom' - - custom_repo_url is undefined + - (custom_repo_url is undefined or custom_repo_url == '') - ceph_custom_repositories is undefined - name: fail if baseurl is not defined for ceph_custom_repositories