From: Frédéric Lécaille Date: Thu, 20 Apr 2017 11:36:25 +0000 (+0200) Subject: DOC: Add documentation for new "server-template" keyword. X-Git-Tag: v1.8-dev2~63 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=cb4502e3aa70e552eb83937508cd1ea501d9d7d0;p=thirdparty%2Fhaproxy.git DOC: Add documentation for new "server-template" keyword. --- diff --git a/doc/configuration.txt b/doc/configuration.txt index e6ea2cfc89..d574cb6774 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 ]