Install amphora agent from distribution package on RHEL

This ensures we use the appropriate amphora package (and also allows
amphora image creation with local repositories)

Repositories were already needed for openstack-selinux package, so this
does not change the build procedure

Change-Id: I837f73ec896405b9a648febfaf2cf0704458825b
This commit is contained in:
Bernard Cafarelli 2017-05-22 16:53:56 +02:00 committed by Nir Magnezi
parent 7466016ae9
commit 1b3fdbef51
5 changed files with 16 additions and 0 deletions

@ -315,6 +315,10 @@ if [ "$AMP_BASEOS" = "ubuntu" ]; then
AMP_element_sequence="$AMP_element_sequence no-resolvconf"
AMP_element_sequence="$AMP_element_sequence amphora-agent-ubuntu"
AMP_element_sequence="$AMP_element_sequence keepalived-octavia-ubuntu"
elif [ "$AMP_BASEOS" = "rhel" ]; then
AMP_element_sequence="$AMP_element_sequence no-resolvconf"
AMP_element_sequence="$AMP_element_sequence amphora-agent-rhel"
AMP_element_sequence="$AMP_element_sequence keepalived-octavia"
else
AMP_element_sequence="$AMP_element_sequence no-resolvconf"
AMP_element_sequence="$AMP_element_sequence amphora-agent"

@ -0,0 +1 @@
Element to install an Octavia Amphora agent on RHEL systems.

@ -0,0 +1 @@
package-installs

@ -0,0 +1 @@
openstack-octavia-amphora-agent:

@ -0,0 +1,9 @@
#!/bin/bash
if [ ${DIB_DEBUG_TRACE:-0} -gt 0 ]; then
set -x
fi
set -eu
set -o pipefail
systemctl enable octavia-amphora-agent