@@ -2468,12 +2468,6 @@ __check_services_systemd() {
24682468 servicename=$1
24692469 echodebug " Checking if service ${servicename} is enabled"
24702470
2471- # # DGM
2472- if [ " ${DISTRO_NAME_L} " = " amazon_linux_ami" ] && [ " ${DISTRO_VERSION} " = " 2" ]; then
2473- echoinfo " DGM skipping the is-enabled test on AMZN2, since command 'systemctl is-enabled salt-minion' is generating error msg 'Failed to get D-Bus connection: No such file or directory' on AMZN2 container"
2474- return 0
2475- fi
2476-
24772471 if [ " $( systemctl is-enabled " ${servicename} " ) " = " enabled" ]; then
24782472 echodebug " Service ${servicename} is enabled"
24792473 return 0
@@ -3195,11 +3189,8 @@ install_ubuntu_git_deps() {
31953189 __PACKAGES=" ${__PACKAGES} util-linux-extra"
31963190 fi
31973191
3198- # Additionally install procps and pciutils which allows for Docker bootstraps. See 366#issuecomment-39666813
3199- __PACKAGES=" ${__PACKAGES} procps pciutils"
3200-
3201- # ensure sudo installed
3202- __PACKAGES=" ${__PACKAGES} sudo"
3192+ # Additionally install procps pciutils and sudo which allows for Docker bootstraps. See 366#issuecomment-39666813
3193+ __PACKAGES=" ${__PACKAGES} procps pciutils sudo"
32033194
32043195 # shellcheck disable=SC2086
32053196 __apt_get_install_noinput ${__PACKAGES} || return 1
@@ -3598,15 +3589,12 @@ install_debian_onedir_deps() {
35983589 return 1
35993590 fi
36003591
3601- # Additionally install procps and pciutils which allows for Docker bootstraps. See 366#issuecomment-39666813
3602- __PACKAGES=' procps pciutils'
3592+ # Additionally install procps, pciutils and sudo which allows for Docker bootstraps. See 366#issuecomment-39666813
3593+ __PACKAGES=' procps pciutils sudo '
36033594
36043595 # YAML module is used for generating custom master/minion configs
36053596 __PACKAGES=" ${__PACKAGES} python${PY_PKG_VER} -yaml"
36063597
3607- # ensure sudo installed
3608- __PACKAGES=" ${__PACKAGES} sudo"
3609-
36103598 # shellcheck disable=SC2086
36113599 __apt_get_install_noinput ${__PACKAGES} || return 1
36123600
@@ -3649,11 +3637,8 @@ install_debian_git_deps() {
36493637 __PACKAGES=" python${PY_PKG_VER} -dev python${PY_PKG_VER} -pip python${PY_PKG_VER} -setuptools gcc"
36503638 echodebug " install_debian_git_deps() Installing ${__PACKAGES} "
36513639
3652- # Additionally install procps and pciutils which allows for Docker bootstraps. See 366#issuecomment-39666813
3653- __PACKAGES=" ${__PACKAGES} procps pciutils"
3654-
3655- # ensure sudo installed
3656- __PACKAGES=" ${__PACKAGES} sudo"
3640+ # Additionally install procps, pciutils and sudo which allows for Docker bootstraps. See 366#issuecomment-39666813
3641+ __PACKAGES=" ${__PACKAGES} procps pciutils sudo"
36573642
36583643 # shellcheck disable=SC2086
36593644 __apt_get_install_noinput ${__PACKAGES} || return 1
@@ -3953,14 +3938,11 @@ install_fedora_deps() {
39533938 __PACKAGES=" ${__PACKAGES} dnf-utils libyaml procps-ng python${PY_PKG_VER} -crypto python${PY_PKG_VER} -jinja2"
39543939 __PACKAGES=" ${__PACKAGES} python${PY_PKG_VER} -msgpack python${PY_PKG_VER} -requests python${PY_PKG_VER} -zmq"
39553940 __PACKAGES=" ${__PACKAGES} python${PY_PKG_VER} -pip python${PY_PKG_VER} -m2crypto python${PY_PKG_VER} -pyyaml"
3956- __PACKAGES=" ${__PACKAGES} python${PY_PKG_VER} -systemd"
3941+ __PACKAGES=" ${__PACKAGES} python${PY_PKG_VER} -systemd sudo "
39573942 if [ " ${_EXTRA_PACKAGES} " != " " ]; then
39583943 echoinfo " Installing the following extra packages as requested: ${_EXTRA_PACKAGES} "
39593944 fi
39603945
3961- # ensure sudo installed
3962- __PACKAGES=" ${__PACKAGES} sudo"
3963-
39643946 # shellcheck disable=SC2086
39653947 __dnf_install_noinput ${__PACKAGES} ${_EXTRA_PACKAGES} || return 1
39663948
@@ -3991,10 +3973,7 @@ install_fedora_git_deps() {
39913973 # shellcheck disable=SC2119
39923974 __git_clone_and_checkout || return 1
39933975
3994- __PACKAGES=" python${PY_PKG_VER} -devel python${PY_PKG_VER} -pip python${PY_PKG_VER} -setuptools gcc gcc-c++"
3995-
3996- # ensure sudo installed
3997- __PACKAGES=" ${__PACKAGES} sudo"
3976+ __PACKAGES=" python${PY_PKG_VER} -devel python${PY_PKG_VER} -pip python${PY_PKG_VER} -setuptools gcc gcc-c++ sudo"
39983977
39993978 # shellcheck disable=SC2086
40003979 __dnf_install_noinput ${__PACKAGES} || return 1
@@ -4123,10 +4102,7 @@ install_fedora_onedir_deps() {
41234102 __install_saltstack_fedora_onedir_repository || return 1
41244103 fi
41254104
4126- __PACKAGES=" dnf-utils chkconfig procps-ng"
4127-
4128- # ensure sudo installed
4129- __PACKAGES=" ${__PACKAGES} sudo"
4105+ __PACKAGES=" dnf-utils chkconfig procps-ng sudo"
41304106
41314107 # shellcheck disable=SC2086
41324108 __yum_install_noinput ${__PACKAGES} || return 1
@@ -4286,10 +4262,7 @@ install_centos_stable_deps() {
42864262 __install_saltstack_rhel_onedir_repository || return 1
42874263 fi
42884264
4289- __PACKAGES=" yum-utils chkconfig procps-ng findutils"
4290-
4291- # ensure sudo installed
4292- __PACKAGES=" ${__PACKAGES} sudo"
4265+ __PACKAGES=" yum-utils chkconfig procps-ng findutils sudo"
42934266
42944267 # shellcheck disable=SC2086
42954268 __yum_install_noinput ${__PACKAGES} || return 1
@@ -4335,9 +4308,6 @@ install_centos_stable() {
43354308 __PACKAGES=" ${__PACKAGES} salt-api$MINOR_VER_STRG "
43364309 fi
43374310
4338- # ensure sudo installed
4339- __PACKAGES=" ${__PACKAGES} sudo"
4340-
43414311 # shellcheck disable=SC2086
43424312 yum makecache || return 1
43434313 __yum_install_noinput ${__PACKAGES} || return 1
@@ -4416,10 +4386,7 @@ install_centos_git_deps() {
44164386 return 1
44174387 fi
44184388
4419- __PACKAGES=" ${__PACKAGES} python${PY_PKG_VER} -devel python${PY_PKG_VER} -pip python${PY_PKG_VER} -setuptools gcc"
4420-
4421- # ensure sudo installed
4422- __PACKAGES=" ${__PACKAGES} sudo"
4389+ __PACKAGES=" ${__PACKAGES} python${PY_PKG_VER} -devel python${PY_PKG_VER} -pip python${PY_PKG_VER} -setuptools gcc sudo"
44234390
44244391 # shellcheck disable=SC2086
44254392 __yum_install_noinput ${__PACKAGES} || return 1
@@ -4515,10 +4482,7 @@ install_centos_onedir_deps() {
45154482 __install_saltstack_rhel_onedir_repository || return 1
45164483 fi
45174484
4518- __PACKAGES=" yum-utils chkconfig procps-ng findutils"
4519-
4520- # ensure sudo installed
4521- __PACKAGES=" ${__PACKAGES} sudo"
4485+ __PACKAGES=" yum-utils chkconfig procps-ng findutils sudo"
45224486
45234487 # shellcheck disable=SC2086
45244488 __yum_install_noinput ${__PACKAGES} || return 1
@@ -5619,10 +5583,7 @@ install_amazon_linux_ami_2_git_deps() {
56195583 # shellcheck disable=SC2119
56205584 __git_clone_and_checkout || return 1
56215585
5622- __PACKAGES=" python${PY_PKG_VER} -pip python${PY_PKG_VER} -setuptools python${PY_PKG_VER} -devel gcc"
5623-
5624- # ensure sudo installed
5625- __PACKAGES=" ${__PACKAGES} sudo"
5586+ __PACKAGES=" python${PY_PKG_VER} -pip python${PY_PKG_VER} -setuptools python${PY_PKG_VER} -devel gcc sudo"
56265587
56275588 # shellcheck disable=SC2086
56285589 __yum_install_noinput ${__PACKAGES} || return 1
@@ -5644,10 +5605,7 @@ install_amazon_linux_ami_2_deps() {
56445605
56455606 # We need to install yum-utils before doing anything else when installing on
56465607 # Amazon Linux ECS-optimized images. See issue #974.
5647- __PACKAGES=" yum-utils"
5648-
5649- # ensure sudo installed
5650- __PACKAGES=" ${__PACKAGES} sudo"
5608+ __PACKAGES=" yum-utils sudo"
56515609
56525610 __yum_install_noinput ${__PACKAGES}
56535611
@@ -5737,10 +5695,7 @@ install_amazon_linux_ami_2_onedir_deps() {
57375695
57385696 # We need to install yum-utils before doing anything else when installing on
57395697 # Amazon Linux ECS-optimized images. See issue #974.
5740- __PACKAGES=" yum-utils chkconfig procps-ng findutils"
5741-
5742- # ensure sudo installed
5743- __PACKAGES=" ${__PACKAGES} sudo"
5698+ __PACKAGES=" yum-utils chkconfig procps-ng findutils sudo"
57445699
57455700 __yum_install_noinput ${__PACKAGES}
57465701
@@ -5897,10 +5852,7 @@ install_amazon_linux_ami_2023_git_deps() {
58975852 # shellcheck disable=SC2119
58985853 __git_clone_and_checkout || return 1
58995854
5900- __PACKAGES=" python${PY_PKG_VER} -pip python${PY_PKG_VER} -setuptools python${PY_PKG_VER} -devel gcc"
5901-
5902- # ensure sudo installed
5903- __PACKAGES=" ${__PACKAGES} sudo"
5855+ __PACKAGES=" python${PY_PKG_VER} -pip python${PY_PKG_VER} -setuptools python${PY_PKG_VER} -devel gcc sudo"
59045856
59055857 # shellcheck disable=SC2086
59065858 __yum_install_noinput ${__PACKAGES} || return 1
@@ -5925,10 +5877,7 @@ install_amazon_linux_ami_2023_onedir_deps() {
59255877
59265878 # We need to install yum-utils before doing anything else when installing on
59275879 # Amazon Linux ECS-optimized images. See issue #974.
5928- __PACKAGES=" yum-utils chkconfig procps-ng findutils"
5929-
5930- # ensure sudo installed
5931- __PACKAGES=" ${__PACKAGES} sudo"
5880+ __PACKAGES=" yum-utils chkconfig procps-ng findutils sudo"
59325881
59335882 __yum_install_noinput ${__PACKAGES}
59345883
0 commit comments