mirror of
https://github.com/freeipa/ansible-freeipa.git
synced 2026-07-25 00:44:42 +00:00
Merge pull request #1301 from t-woerner/try_ubuntu_24.04_1
Use ubuntu 24.04 for testing
This commit is contained in:
@@ -3,7 +3,7 @@ trigger:
|
|||||||
- master
|
- master
|
||||||
|
|
||||||
pool:
|
pool:
|
||||||
vmImage: 'ubuntu-20.04'
|
vmImage: 'ubuntu-24.04'
|
||||||
|
|
||||||
variables:
|
variables:
|
||||||
ansible_version: "-core >=2.16,<2.17"
|
ansible_version: "-core >=2.16,<2.17"
|
||||||
|
|||||||
@@ -10,7 +10,7 @@ schedules:
|
|||||||
trigger: none
|
trigger: none
|
||||||
|
|
||||||
pool:
|
pool:
|
||||||
vmImage: 'ubuntu-20.04'
|
vmImage: 'ubuntu-24.04'
|
||||||
|
|
||||||
variables:
|
variables:
|
||||||
# We need to have two sets, as c8s is not supported by all ansible versions
|
# We need to have two sets, as c8s is not supported by all ansible versions
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ trigger:
|
|||||||
- master
|
- master
|
||||||
|
|
||||||
pool:
|
pool:
|
||||||
vmImage: 'ubuntu-20.04'
|
vmImage: 'ubuntu-24.04'
|
||||||
|
|
||||||
variables:
|
variables:
|
||||||
distros: "fedora-latest,c10s,c9s,c8s,fedora-rawhide"
|
distros: "fedora-latest,c10s,c9s,c8s,fedora-rawhide"
|
||||||
|
|||||||
@@ -47,6 +47,8 @@ container_start() {
|
|||||||
|
|
||||||
log info "= Starting ${name} ="
|
log info "= Starting ${name} ="
|
||||||
podman start "${name}"
|
podman start "${name}"
|
||||||
|
# Ensure /etc/shadow is readable
|
||||||
|
podman exec "${name}" bash -c "chmod u+r /etc/shadow"
|
||||||
echo
|
echo
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -79,6 +79,20 @@ shift
|
|||||||
prepare_container "${scenario}" "${IMAGE_TAG}"
|
prepare_container "${scenario}" "${IMAGE_TAG}"
|
||||||
start_container "${scenario}"
|
start_container "${scenario}"
|
||||||
|
|
||||||
|
log info "Wait till systemd-journald is running"
|
||||||
|
max=20
|
||||||
|
wait=2
|
||||||
|
count=0
|
||||||
|
while ! podman exec "${scenario}" ps -x | grep -q "systemd-journald"
|
||||||
|
do
|
||||||
|
if [ $count -ge $max ]; then
|
||||||
|
die "Timeout: systemd-journald is not starting up"
|
||||||
|
fi
|
||||||
|
count=$((count+1))
|
||||||
|
log none "Waiting ${wait} seconds .."
|
||||||
|
sleep ${wait}
|
||||||
|
done
|
||||||
|
|
||||||
# wait for FreeIPA services to be available (usually ~45 seconds)
|
# wait for FreeIPA services to be available (usually ~45 seconds)
|
||||||
log info "Wait for container to be initialized."
|
log info "Wait for container to be initialized."
|
||||||
wait=15
|
wait=15
|
||||||
|
|||||||
Reference in New Issue
Block a user