mirror of
https://github.com/saltstack/salt-bootstrap.git
synced 2025-04-16 09:40:21 +00:00
Linux using Ubuntu runner till systemd support on containers
This commit is contained in:
parent
a50227f2fe
commit
736e8c0bc3
2 changed files with 29 additions and 2 deletions
6
.github/workflows/test-linux.yml
vendored
6
.github/workflows/test-linux.yml
vendored
|
@ -32,8 +32,10 @@ jobs:
|
|||
Test:
|
||||
name: ${{ matrix.instance }}
|
||||
runs-on: ubuntu-latest
|
||||
container:
|
||||
image: ghcr.io/saltstack/salt-ci-containers/testing:${{ inputs.container-slug }}
|
||||
## DGM use runner until have working systemd solution on containers
|
||||
## DGM runs-on: ubuntu-latest
|
||||
## DGM container:
|
||||
## DGM image: ghcr.io/saltstack/salt-ci-containers/testing:${{ inputs.container-slug }}
|
||||
|
||||
timeout-minutes: ${{ inputs.timeout }}
|
||||
strategy:
|
||||
|
|
|
@ -2992,6 +2992,8 @@ __enable_universe_repository() {
|
|||
set -v
|
||||
set -x
|
||||
|
||||
echodebug "__enable_universe_repository() entry"
|
||||
|
||||
if [ "$(grep -R universe /etc/apt/sources.list /etc/apt/sources.list.d/ | grep -v '#')" != "" ]; then
|
||||
# The universe repository is already enabled
|
||||
return 0
|
||||
|
@ -3072,6 +3074,7 @@ __install_saltstack_ubuntu_onedir_repository() {
|
|||
set -x
|
||||
|
||||
echodebug "__install_saltstack_ubuntu_onedir_repository() entry"
|
||||
|
||||
# Workaround for latest non-LTS Ubuntu
|
||||
if { [ "$DISTRO_MAJOR_VERSION" -eq 20 ] && [ "$DISTRO_MINOR_VERSION" -eq 10 ]; } || \
|
||||
{ [ "$DISTRO_MAJOR_VERSION" -eq 22 ] && [ "$DISTRO_MINOR_VERSION" -eq 10 ]; } || \
|
||||
|
@ -3306,6 +3309,8 @@ install_ubuntu_stable() {
|
|||
set -v
|
||||
set -x
|
||||
|
||||
__wait_for_apt apt-get update || return 1
|
||||
|
||||
__PACKAGES=""
|
||||
|
||||
if [ "$_INSTALL_CLOUD" -eq $BS_TRUE ];then
|
||||
|
@ -3369,6 +3374,8 @@ install_ubuntu_onedir() {
|
|||
set -v
|
||||
set -x
|
||||
|
||||
__wait_for_apt apt-get update || return 1
|
||||
|
||||
__PACKAGES=""
|
||||
|
||||
if [ "$_INSTALL_CLOUD" -eq $BS_TRUE ];then
|
||||
|
@ -3735,6 +3742,11 @@ install_debian_git_deps() {
|
|||
}
|
||||
|
||||
install_debian_stable() {
|
||||
# DGM debug
|
||||
set -v
|
||||
set -x
|
||||
|
||||
__wait_for_apt apt-get update || return 1
|
||||
|
||||
__PACKAGES=""
|
||||
|
||||
|
@ -3774,6 +3786,9 @@ install_debian_12_git_deps() {
|
|||
}
|
||||
|
||||
install_debian_git() {
|
||||
# DGM debug
|
||||
set -v
|
||||
set -x
|
||||
|
||||
if [ -n "$_PY_EXE" ]; then
|
||||
_PYEXE=${_PY_EXE}
|
||||
|
@ -3814,6 +3829,11 @@ install_debian_12_git() {
|
|||
}
|
||||
|
||||
install_debian_onedir() {
|
||||
# DGM debug
|
||||
set -v
|
||||
set -x
|
||||
|
||||
__wait_for_apt apt-get update || return 1
|
||||
|
||||
__PACKAGES=""
|
||||
|
||||
|
@ -3970,6 +3990,7 @@ __install_saltstack_fedora_onedir_repository() {
|
|||
dnf config-manager --set-enabled salt-repo-latest
|
||||
fi
|
||||
dnf clean expire-cache || return 1
|
||||
dnf makecache || return 1
|
||||
|
||||
elif [ "$ONEDIR_REV" != "latest" ]; then
|
||||
echowarn "salt.repo already exists, ignoring salt version argument."
|
||||
|
@ -4264,6 +4285,7 @@ __install_saltstack_rhel_onedir_repository() {
|
|||
dnf config-manager --set-enabled salt-repo-latest
|
||||
fi
|
||||
dnf clean expire-cache || return 1
|
||||
dnf makecache || return 1
|
||||
elif [ "$ONEDIR_REV" != "latest" ]; then
|
||||
echowarn "salt.repo already exists, ignoring salt version argument."
|
||||
echowarn "Use -F (forced overwrite) to install $ONEDIR_REV."
|
||||
|
@ -5672,6 +5694,7 @@ install_amazon_linux_ami_2_deps() {
|
|||
dnf config-manager --set-enabled salt-repo-latest
|
||||
fi
|
||||
dnf clean expire-cache || return 1
|
||||
dnf makecache || return 1
|
||||
fi
|
||||
fi
|
||||
|
||||
|
@ -5715,6 +5738,7 @@ install_amazon_linux_ami_2_onedir_deps() {
|
|||
dnf config-manager --set-enabled salt-repo-latest
|
||||
fi
|
||||
dnf clean expire-cache || return 1
|
||||
dnf makecache || return 1
|
||||
fi
|
||||
fi
|
||||
|
||||
|
@ -5842,6 +5866,7 @@ install_amazon_linux_ami_2023_onedir_deps() {
|
|||
dnf config-manager --set-enabled salt-repo-latest
|
||||
fi
|
||||
dnf clean expire-cache || return 1
|
||||
dnf makecache || return 1
|
||||
fi
|
||||
fi
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue