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:
parent
7466016ae9
commit
1b3fdbef51
diskimage-create
elements/amphora-agent-rhel
@ -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"
|
||||
|
1
elements/amphora-agent-rhel/README.rst
Normal file
1
elements/amphora-agent-rhel/README.rst
Normal file
@ -0,0 +1 @@
|
||||
Element to install an Octavia Amphora agent on RHEL systems.
|
1
elements/amphora-agent-rhel/element-deps
Normal file
1
elements/amphora-agent-rhel/element-deps
Normal file
@ -0,0 +1 @@
|
||||
package-installs
|
1
elements/amphora-agent-rhel/package-installs.yaml
Normal file
1
elements/amphora-agent-rhel/package-installs.yaml
Normal file
@ -0,0 +1 @@
|
||||
openstack-octavia-amphora-agent:
|
9
elements/amphora-agent-rhel/post-install.d/11-enable-octavia-amphora-agent-systemd
Executable file
9
elements/amphora-agent-rhel/post-install.d/11-enable-octavia-amphora-agent-systemd
Executable file
@ -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
|
Loading…
x
Reference in New Issue
Block a user