4e6e8f0c0e
* Added support for Rocky Linux in the amphora-agent * Amphora images for Rocky can be built when setting OCTAVIA_AMP_BASE_OS="rocky" * Fixed the devstack plugin for Rocky Linux hosts Change-Id: I41f7e2341332b9cb74b4a59fedb6eed1af3c8062
22 lines
362 B
Bash
Executable File
22 lines
362 B
Bash
Executable File
#!/bin/bash
|
|
|
|
set -eu
|
|
set -o pipefail
|
|
|
|
case $DISTRO_NAME in
|
|
ubuntu | debian )
|
|
HAPROXY_USER_GROUP=nogroup
|
|
;;
|
|
fedora | centos* | rhel* | rocky )
|
|
HAPROXY_USER_GROUP=haproxy
|
|
;;
|
|
*)
|
|
HAPROXY_USER_GROUP=nogroup
|
|
;;
|
|
esac
|
|
|
|
cat >> /var/lib/octavia/haproxy-default-user-group.conf <<EOF
|
|
global
|
|
group $HAPROXY_USER_GROUP
|
|
EOF
|