Skip to content

Commit

Permalink
Updated to install sudo, needed for testing
Browse files Browse the repository at this point in the history
  • Loading branch information
dmurphy18 committed Nov 15, 2024
1 parent f33f58e commit 2a72acf
Showing 1 changed file with 58 additions and 3 deletions.
61 changes: 58 additions & 3 deletions bootstrap-salt.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3185,6 +3185,9 @@ install_ubuntu_deps() {
# Additionally install procps and pciutils which allows for Docker bootstraps. See 366#issuecomment-39666813
__PACKAGES="${__PACKAGES} procps pciutils"

# ensure sudo installed
__PACKAGES="${__PACKAGES} sudo"

## include hwclock if not part of base OS (23.10 and up)
if [ ! -f /usr/sbin/hwclock ]; then
__PACKAGES="${__PACKAGES} util-linux-extra"
Expand Down Expand Up @@ -3274,6 +3277,9 @@ install_ubuntu_git_deps() {
__PACKAGES="${__PACKAGES} util-linux-extra"
fi

# ensure sudo installed
__PACKAGES="${__PACKAGES} sudo"

# shellcheck disable=SC2086
__apt_get_install_noinput ${__PACKAGES} || return 1

Expand Down Expand Up @@ -3724,6 +3730,9 @@ install_debian_onedir_deps() {
# YAML module is used for generating custom master/minion configs
__PACKAGES="${__PACKAGES} python${PY_PKG_VER}-yaml"

# ensure sudo installed
__PACKAGES="${__PACKAGES} sudo"

# shellcheck disable=SC2086
__apt_get_install_noinput ${__PACKAGES} || return 1

Expand Down Expand Up @@ -3765,6 +3774,9 @@ install_debian_git_deps() {
__PACKAGES="python${PY_PKG_VER}-dev python${PY_PKG_VER}-pip python${PY_PKG_VER}-setuptools gcc"
echodebug "install_debian_git_deps() Installing ${__PACKAGES}"

# ensure sudo installed
__PACKAGES="${__PACKAGES} sudo"

# shellcheck disable=SC2086
__apt_get_install_noinput ${__PACKAGES} || return 1

Expand Down Expand Up @@ -4061,6 +4073,9 @@ install_fedora_deps() {
echoinfo "Installing the following extra packages as requested: ${_EXTRA_PACKAGES}"
fi

# ensure sudo installed
__PACKAGES="${__PACKAGES} sudo"

# shellcheck disable=SC2086
__dnf_install_noinput ${__PACKAGES} ${_EXTRA_PACKAGES} || return 1

Expand Down Expand Up @@ -4091,6 +4106,10 @@ install_fedora_git_deps() {
__git_clone_and_checkout || return 1

__PACKAGES="python${PY_PKG_VER}-devel python${PY_PKG_VER}-pip python${PY_PKG_VER}-setuptools gcc gcc-c++"

# ensure sudo installed
__PACKAGES="${__PACKAGES} sudo"

# shellcheck disable=SC2086
__dnf_install_noinput ${__PACKAGES} || return 1

Expand Down Expand Up @@ -4220,6 +4239,9 @@ install_fedora_onedir_deps() {

__PACKAGES="dnf-utils chkconfig procps-ng"

# ensure sudo installed
__PACKAGES="${__PACKAGES} sudo"

# shellcheck disable=SC2086
__yum_install_noinput ${__PACKAGES} || return 1

Expand Down Expand Up @@ -4368,6 +4390,9 @@ install_centos_stable_deps() {

__PACKAGES="yum-utils chkconfig procps-ng findutils"

# ensure sudo installed
__PACKAGES="${__PACKAGES} sudo"

# shellcheck disable=SC2086
__yum_install_noinput ${__PACKAGES} || return 1

Expand Down Expand Up @@ -4414,6 +4439,9 @@ install_centos_stable() {
__PACKAGES="${__PACKAGES} salt-api$MINOR_VER_STRG"
fi

# ensure sudo installed
__PACKAGES="${__PACKAGES} sudo"

# shellcheck disable=SC2086
__yum_install_noinput ${__PACKAGES} || return 1

Expand Down Expand Up @@ -4498,6 +4526,9 @@ install_centos_git_deps() {

__PACKAGES="${__PACKAGES} python${PY_PKG_VER}-devel python${PY_PKG_VER}-pip python${PY_PKG_VER}-setuptools gcc"

# ensure sudo installed
__PACKAGES="${__PACKAGES} sudo"

# shellcheck disable=SC2086
__yum_install_noinput ${__PACKAGES} || return 1

Expand Down Expand Up @@ -4603,6 +4634,9 @@ install_centos_onedir_deps() {

__PACKAGES="yum-utils chkconfig procps-ng findutils"

# ensure sudo installed
__PACKAGES="${__PACKAGES} sudo"

# shellcheck disable=SC2086
__yum_install_noinput ${__PACKAGES} || return 1

Expand Down Expand Up @@ -5714,6 +5748,9 @@ install_amazon_linux_ami_2_git_deps() {

__PACKAGES="python${PY_PKG_VER}-pip python${PY_PKG_VER}-setuptools python${PY_PKG_VER}-devel gcc"

# ensure sudo installed
__PACKAGES="${__PACKAGES} sudo"

# shellcheck disable=SC2086
__yum_install_noinput ${__PACKAGES} || return 1

Expand All @@ -5734,7 +5771,12 @@ install_amazon_linux_ami_2_deps() {

# We need to install yum-utils before doing anything else when installing on
# Amazon Linux ECS-optimized images. See issue #974.
__yum_install_noinput yum-utils
__PACKAGES="yum-utils"

# ensure sudo installed
__PACKAGES="${__PACKAGES} sudo"

__yum_install_noinput ${__PACKAGES}

# Do upgrade early
if [ "$_UPGRADE_SYS" -eq $BS_TRUE ]; then
Expand Down Expand Up @@ -5778,7 +5820,12 @@ install_amazon_linux_ami_2_onedir_deps() {

# We need to install yum-utils before doing anything else when installing on
# Amazon Linux ECS-optimized images. See issue #974.
__yum_install_noinput yum-utils
__PACKAGES="yum-utils"

# ensure sudo installed
__PACKAGES="${__PACKAGES} sudo"

__yum_install_noinput ${__PACKAGES}

# Do upgrade early
if [ "$_UPGRADE_SYS" -eq $BS_TRUE ]; then
Expand Down Expand Up @@ -5890,6 +5937,9 @@ install_amazon_linux_ami_2023_git_deps() {

__PACKAGES="python${PY_PKG_VER}-pip python${PY_PKG_VER}-setuptools python${PY_PKG_VER}-devel gcc"

# ensure sudo installed
__PACKAGES="${__PACKAGES} sudo"

# shellcheck disable=SC2086
__yum_install_noinput ${__PACKAGES} || return 1

Expand All @@ -5906,7 +5956,12 @@ install_amazon_linux_ami_2023_onedir_deps() {

# We need to install yum-utils before doing anything else when installing on
# Amazon Linux ECS-optimized images. See issue #974.
__yum_install_noinput yum-utils
__PACKAGES="yum-utils"

# ensure sudo installed
__PACKAGES="${__PACKAGES} sudo"

__yum_install_noinput ${__PACKAGES}

# Do upgrade early
if [ "$_UPGRADE_SYS" -eq $BS_TRUE ]; then
Expand Down

0 comments on commit 2a72acf

Please sign in to comment.