From cb4502e3aa70e552eb83937508cd1ea501d9d7d0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20L=C3=A9caille?= Date: Thu, 20 Apr 2017 13:36:25 +0200 Subject: [PATCH] DOC: Add documentation for new "server-template" keyword. --- doc/configuration.txt | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) diff --git a/doc/configuration.txt b/doc/configuration.txt index e6ea2cfc8..d574cb677 100644 --- a/doc/configuration.txt +++ b/doc/configuration.txt @@ -1969,6 +1969,7 @@ rspirep - X X X rsprep - X X X server - - X X server-state-file-name X - X X +server-template - - X X source X - X X srvtimeout (deprecated) X - X X stats admin - X X X @@ -7521,6 +7522,44 @@ server-state-file-name [] See also: "server-state-file-base", "load-server-state-from-file", and "show servers state" +server-template [:] [params*] + Set a template to initialize servers with shared parameters. + The names of these servers are built from and parameters. + May be used in sections : defaults | frontend | listen | backend + no | no | yes | yes + + Arguments: + A prefix for the server names to be built. + + + If is provided, this template initializes servers + with 1 up to as server name suffixes. A range of numbers + - may also be used to use up to + as server name suffixes. + + A FQDN for all the servers this template initializes. + + Same meaning as "server" argument (see "server" keyword). + + + Remaining server parameters among all those supported by "server" + keyword. + + Examples: + # Initializes 3 servers with srv1, srv2 and srv3 as names, + # google.com as FQDN, and health-check enabled. + server-template srv 1-3 google.com:80 check + + # or + server-template srv 3 google.com:80 check + + # would be equivalent to: + server srv1 google.com:80 check + server srv2 google.com:80 check + server srv3 google.com:80 check + + + source [:] [usesrc { [:] | client | clientip } ] source [:] [usesrc { [:] | hdr_ip([,]) } ] source [:] [interface ]