Simplify bmc repo setup and installation

This makes the following changes to simplify the install of pyghmi and
its dependencies:
- Bootstrap installing tripleo-repo by curling delorean.repo instead
  of a wget tree search to find the tripleo-repo rpm
- Install pyghmi from rpm, it has been packaged for years and
  installing by pip was intended to be temporary
- Do not install unused jq, git, pip

Change-Id: I43206770283cf9a8a6cc7ac2e71f7800238e1690
This commit is contained in:
Steve Baker 2022-03-22 14:30:55 +13:00
parent 01d82d7544
commit f36b5cc6eb
1 changed files with 3 additions and 5 deletions

View File

@ -4,12 +4,10 @@ set -x
centos_ver=$(rpm --eval %{centos_ver})
if [ "$centos_ver" == "7" ] ; then
yum install -y wget
wget -r --no-parent -nd -e robots=off -l 1 -A 'python2-tripleo-repos-*' https://trunk.rdoproject.org/centos7/current/
yum install -y python2-tripleo-repos-*
curl -o /etc/yum.repos.d/delorean.repo https://trunk.rdoproject.org/centos7/current/delorean.repo
yum install -y python2-tripleo-repos
tripleo-repos current-tripleo
yum install -y python-crypto python2-novaclient python2-neutronclient python-pip os-net-config git jq python2-os-client-config python2-openstackclient
pip install pyghmi
yum install -y python-crypto python2-novaclient python2-neutronclient python2-pyghmi os-net-config python2-os-client-config python2-openstackclient
else
set +x
$signal_command --data-binary '{"status": "FAILURE"}'