Allow to add custom backends in HAProxy
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
tripleo |
Fix Released
|
Medium
|
Juan Antonio Osorio Robles |
Bug Description
Dear Stacker,
In order to get a proper metric flow using prometheus, we need to add a new HAProxy backend on our controllers, exposing an HTTP port with some basic authentication.
In order to do so, I think the best way would be to:
- modify tripleo:
- modify tripleo::haproxy in order to add a "create_
The first one would require some basic validation and the modification of the call of haproxy::listen (no big deal), and the second one will allow to get, in our custom environment, something like:
ControllerExtra
tripleo:
custom1:
<standard parameters>
This would also allow to get a really nice feature, like allowing to move all the code for the creation of the endpoints from tripleo::haproxy to hiera, and use some "merge" feature (hiera_merge I think, or something like that).
I can provide the first step, meaning the two "simple" modification in tripleo::haproxy and tripleo:
Do you agree with that modification and steps? Is that something that might be integrated and, at least for the first step, backported in Pike once it's fully validated?
Thank you for your comments :)
Cheers,
C.
Changed in tripleo: | |
milestone: | queens-2 → queens-3 |
Changed in tripleo: | |
assignee: | nobody → Juan Antonio Osorio Robles (juan-osorio-robles) |
status: | Triaged → Fix Released |
So there's already an effort to do this by refactoring the haproxy to allow for dynamic creation. See https:/ /review. openstack. org/#/q/ topic:haproxy- dynamic- endpoints+ (status: open+OR+ status: merged)