octavia/elements/amphora-agent
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
..
init-scripts Fix multi-typo error in Octavia 2017-01-05 11:56:20 +08:00
install.d Auto-detect haproxy user_group 2017-04-23 18:24:23 +03:00
post-install.d Adds support for systemd amphora images 2016-11-16 00:42:37 +00:00
static/etc/logrotate.d Amphora-agent should log to a distinct location 2016-12-16 22:02:44 +00:00
README.rst Updating the disk image builder code 2015-04-10 21:03:17 +00:00
element-deps Amphora-agent should log to a distinct location 2016-12-16 22:02:44 +00:00
package-installs.yaml Add build-essential package dependency to amphora-agent element 2016-12-19 17:02:58 +01:00
source-repository-amphora-agent Fix the agent install to use pip -U 2016-12-15 13:17:18 -06:00
svc-map Updating the disk image builder code 2015-04-10 21:03:17 +00:00

README.rst

Element to install an Octavia Amphora agent.