Install agent dependencies from source for CentOS

Several packages are not installed from RPM packages which are
required in order for CentOS from source to operate correctly.

This looked like sudo was failing to execute, but it was because
the dnsmasq binary was not found.

backport: liberty

Change-Id: If23cfbacd55d9089ffec442399ee0151adea923f
Closes-Bug: #1503412
This commit is contained in:
Steven Dake 2015-10-06 15:58:12 -07:00
parent fbb1842fc8
commit 2dead81564

View File

@ -15,7 +15,16 @@ RUN pip install oslo.versionedobjects
{% endif %}
{% elif install_type == 'source' %}
{% if base_distro in ['ubuntu', 'debian'] %}
{% if base_distro in ['centos', 'fedora', 'oraclelinux', 'rhel'] %}
RUN yum -y install \
uuid \
dnsmasq \
ipset \
openvswitch \
&& yum clean all
{% elif base_distro in ['ubuntu', 'debian'] %}
RUN apt-get install -y --no-install-recommends \
iptables \