octavia/elements
Nir Magnezi 26a55415ab Auto-detect haproxy user_group
As a followup to Id99948aec64656a0532afc68e146f0610bff1378, adding auto
detection to haproxy_amphora.user_group

haproxy is capable[1] handling a list of configuration files.
This patch leverages that capability by simply providing haproxy with an
additional configuration file, which is baked in the amphora image via a
diskimage-builder element.

The above-mentioned element will specify the following values for user group:
Ubuntu: 'nogroup'
RHEL/CentOS/Fedora: 'haproxy'

The amphora-agent will parse and remove any user_group configuration provided
by Octavia controller worker.
This is in order to maintain amphora-agent backward compatibility to old
Octavia workers, who still provide user_group to the amphora-agent.
Octavia Workers that include this patch will no longer provide user_group
configuration to the amphora-agent.

[1] https://cbonte.github.io/haproxy-dconv/1.7/management.html#3

Related-Bug #1548070

Change-Id: Ia8fede9d7da4709a48661d1fc595a16d04fcbfa9
2017-04-23 18:24:23 +03:00
..
amphora-agent Auto-detect haproxy user_group 2017-04-23 18:24:23 +03:00
amphora-agent-ubuntu Condense amphora-agent-ubuntu in to amphora-agent 2016-08-17 15:55:38 +00:00
apt-mirror Deperecate apt-mirror element 2016-08-24 15:23:03 -05:00
centos-mirror Support RHEL base image in DIB 2016-07-12 10:24:37 +02:00
certs-ramfs Use cryptsetup/LUKS for encrypted ramfs 2017-02-14 10:37:45 +00:00
fedora-mirror Support RHEL base image in DIB 2016-07-12 10:24:37 +02:00
haproxy-octavia Auto-detect haproxy user_group 2017-04-23 18:24:23 +03:00
haproxy-octavia-ubuntu Auto-detect haproxy user_group 2017-04-23 18:24:23 +03:00
keepalived-octavia Fix the amphora image support for RH Linux flavors 2017-01-31 20:05:07 +02:00
keepalived-octavia-ubuntu Stop depending on tripleo-image-elements 2016-12-15 13:17:18 -06:00
no-resolvconf Fix the amphora image support for RH Linux flavors 2017-01-31 20:05:07 +02:00
rebind-sshd Make SSH bind to management net only 2016-03-04 13:58:33 -08:00
root-passwd Add Amphora base image creation scripts for Octavia 2014-12-11 01:31:19 +00:00