Hi Frederic
Am 07-04-2017 15:00, schrieb Frederic Lecaille:
Hello Haproxy ML,
Here are patches attached to this mail to add "server templates"
feature to haproxy.
Please can you explain a little bit more the use case, thanks.
I'm sure there is a valid use case but I don't understand it.
The two first patches consist in moving code to be reused both during
'server' lines parsing and during and server templates
initializations.
A new CLI command has also been added (see "init server-templates
backend).
This remind me that haproxy should have a 'save_config()' function.
When something is changed ad runtime it should be saved for the next
restart/reload of haproxy.
Third patch adds server_templates_init() function to be called to
initialize server templates attached to a proxy server list.
The remaining patch adds support for 'server-templates' configuration
file new keyword and updates the documentation.
Feel free to review/test/comment upon these patches. Any suggestion,
are welcome.
Regards,
Fred.
Regards
Aleks