loci/scripts/install_packages.sh
Vasyl Saienko 047353213d Introduce per project customization scripts interface
Do project specific installations by calling project specific
scripts located in scripts/project_specific/<project_name> directory.
The scripts are executed in alphabetical order.
Also move keystone oidc and nova console into own files

Change-Id: I1f381e85f095eee2bede3f4925f51c9103d83467
2024-09-10 13:19:18 +00:00

23 lines
566 B
Bash
Executable File

#!/bin/bash
set -ex
for file in /opt/loci/bindep*; do
PACKAGES+=($(bindep -f $file -b -l newline ${PROJECT} ${PROFILES} ${distro_version} || :))
done
if [[ ! -z ${PACKAGES} ]]; then
case ${distro} in
ubuntu)
apt-get install -y --no-install-recommends ${PACKAGES[@]} ${DIST_PACKAGES}
;;
centos)
yum -y --setopt=skip_missing_names_on_install=False install ${PACKAGES[@]} ${DIST_PACKAGES}
;;
*)
echo "Unknown distro: ${distro}"
exit 1
;;
esac
fi