Fix --install-deps bindep for quickstart.sh
bindep is not being called on --install-deps argument. Now it downloads bindep.txt and calls bindep install. Change-Id: Id8bd74dd5e55db8a9c0bfff4f713506e9e646dd6 Fixes-Bug: #1828509
This commit is contained in:
parent
aef618721b
commit
eef85762b0
|
@ -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.
|
||||
|
||||
|
|
|
@ -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() {
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue