Merge "Fix --install-deps bindep for quickstart.sh"

This commit is contained in:
Zuul 2019-05-17 01:15:45 +00:00 committed by Gerrit Code Review
commit ea6191e46d
3 changed files with 13 additions and 3 deletions

View File

@ -37,6 +37,13 @@ password from the machine running ansible. Currently the virthost machine must
be running a recent Red Hat-based Linux distribution (CentOS 7.x, RHEL 7.x).
Other distributions could work but will not be supported with out CI validation.
Quickstart tool runs commands with superuser privileges as installing packages
to the deployer system. The script should be run by a sudo user, e.g.
``deployer``, which should be added to the sudoers configuration, as shown
below::
deployer ALL=(ALL) NOPASSWD: ALL
.. note::
Running quickstart.sh commands as root is not suggested or supported.

View File

@ -8,9 +8,9 @@
# python2 and python3 have been validated
print_sudo_warning() {
echo -e "\e[31m WARNING: SUDO is not passwordless, assuming all packages \
are installed! \n export USER_OVERRIDE_SUDO_CHECK=1 \n to be prompted for sudo \
password \e[0m"
echo -e "\e[31m WARNING: SUDO user is not passwordless.\
\n export USER_OVERRIDE_SUDO_CHECK=1 \n to be prompted for sudo \
password. \e[0m"
}
python_cmd() {

View File

@ -48,6 +48,7 @@ if [[ ! -e ${ABSDIR}/install-deps.sh ]]; then
echo "install-deps.sh was not found, in the same directory ($ABSDIR) as quickstart.sh"
echo "downloading install-deps.sh to ${ABSDIR}/install-deps.sh"
curl -o ${ABSDIR}/install-deps.sh https://opendev.org/openstack/tripleo-quickstart/raw/branch/master/install-deps.sh
curl -o ${ABSDIR}/bindep.txt https://opendev.org/openstack/tripleo-quickstart/raw/branch/master/bindep.txt
fi
source ${ABSDIR}/install-deps.sh
@ -465,6 +466,8 @@ fi
if [ "$OPT_INSTALL_DEPS" = 1 ]; then
echo "NOTICE: installing dependencies" >&2
install_deps
install_bindep
install_package_deps_via_bindep
exit $?
fi