Updated from OpenStack Ansible Tests
Change-Id: I8662a0f50e0c50598a84984b1ae3172cba8bb854
This commit is contained in:
parent
2c93df02ae
commit
cab78f3d36
@ -35,9 +35,12 @@ source /etc/os-release || source /usr/lib/os-release
|
|||||||
install_pkg_deps() {
|
install_pkg_deps() {
|
||||||
pkg_deps="git"
|
pkg_deps="git"
|
||||||
|
|
||||||
|
# Prefer dnf over yum for CentOS.
|
||||||
|
which dnf &>/dev/null && RHT_PKG_MGR='dnf' || RHT_PKG_MGR='yum'
|
||||||
|
|
||||||
case ${ID,,} in
|
case ${ID,,} in
|
||||||
*suse*) pkg_mgr_cmd="zypper -n in" ;;
|
*suse*) pkg_mgr_cmd="zypper -n in" ;;
|
||||||
centos|rhel) pkg_mgr_cmd="yum install -y" ;;
|
centos|rhel) pkg_mgr_cmd="${RHT_PKG_MGR} install -y" ;;
|
||||||
fedora) pkg_mgr_cmd="dnf -y install" ;;
|
fedora) pkg_mgr_cmd="dnf -y install" ;;
|
||||||
ubuntu|debian) pkg_mgr_cmd="apt-get install -y" ;;
|
ubuntu|debian) pkg_mgr_cmd="apt-get install -y" ;;
|
||||||
*) echo "unsupported distribution: ${ID,,}"; exit 1 ;;
|
*) echo "unsupported distribution: ${ID,,}"; exit 1 ;;
|
||||||
|
Loading…
Reference in New Issue
Block a user