Updating devstack plugin to filter for specific backport ubuntu versions
Working on LinuxMint was running into an issue where it was trying to add a backport repository that didn't exist. This adds some specific logic to filter based on what specific ubuntu releases use backports. Change-Id: I0ac652107dd328a03a1af0495c628dc05ff2b732
This commit is contained in:
parent
614d9f2dd6
commit
1110a9391a
|
@ -7,15 +7,15 @@ function neutron_lbaas_install {
|
|||
|
||||
function neutron_agent_lbaas_install_agent_packages {
|
||||
if is_ubuntu; then
|
||||
if [[ ${OFFLINE} == False ]]; then
|
||||
UBUNTU_CODENAME=$(lsb_release -cs)
|
||||
BACKPORT="deb http://archive.ubuntu.com/ubuntu ${UBUNTU_CODENAME}-backports main restricted universe multiverse"
|
||||
if [[ ${OFFLINE} == False && ${os_CODENAME} =~ (trusty|precise) ]]; then
|
||||
# Check for specific version of Ubuntu that requires backports repository for haproxy 1.5.14 or greater
|
||||
BACKPORT="deb http://archive.ubuntu.com/ubuntu ${os_CODENAME}-backports main restricted universe multiverse"
|
||||
BACKPORT_EXISTS=$(grep ^ /etc/apt/sources.list /etc/apt/sources.list.d/* | grep "${BACKPORT}") || true
|
||||
if [[ -z "${BACKPORT_EXISTS}" ]]; then
|
||||
sudo add-apt-repository "${BACKPORT}" -y
|
||||
fi
|
||||
sudo apt-get update
|
||||
sudo apt-get install haproxy -t ${UBUNTU_CODENAME}-backports
|
||||
sudo apt-get install haproxy -t ${os_CODENAME}-backports
|
||||
fi
|
||||
fi
|
||||
if is_fedora || is_suse; then
|
||||
|
|
Loading…
Reference in New Issue