2 ##############################################################################
3 # Copyright (c) 2016 Dan Radez (Red Hat) and others.
5 # All rights reserved. This program and the accompanying materials
6 # are made available under the terms of the Apache License, Version 2.0
7 # which accompanies this distribution, and is available at
8 # http://www.apache.org/licenses/LICENSE-2.0
9 ##############################################################################
11 # This script makes sure deploy deps are installed when not relying on RPM
17 # check for rdo-release
18 if ! rpm -q rdo-release > /dev/null; then
22 # make sure rdo release
23 if ! sudo yum $rdo_action -y https://www.rdoproject.org/repos/rdo-release.rpm; then
24 echo "Failed to $rdo_action RDO Release package..."
28 # update ipxe-roms-qemu
29 if ! sudo yum update -y ipxe-roms-qemu; then
30 echo "Failed to update ipxe-roms-qemu package..."
34 # check for other packages
35 for i in epel-release python34-PyYAML openvswitch libguestfs \
36 libguestfs-tools-c libvirt-python python2-oslo-config \
37 python2-debtcollector python34-devel libxslt-devel \
38 libxml2-devel python-virtualbmc python34-jinja2 python34-pip \
39 rpm-build wget libvirt ntpdate; do
40 # Make sure deploy deps are installed
41 if ! rpm -q $i > /dev/null; then
42 if ! sudo yum install -y $i; then
43 echo "Failed to install $i package..."
49 # install pip dependencies
50 sudo pip3 install python-ipmi gitpython pygerrit2
52 # Required packages to redirect stdin with virt-customize
53 if ! sudo yum -y install libguestfs libguestfs-tools libguestfs-tools-c supermin supermin5 supermin-helper perl-Sys-Guestfs python-libguestfs; then
54 echo "Failed to install supermin/libguestfs packages..."