[acassen/keepalived] 63fc8a: Copyright update

pqarmitage <[email protected]> Fri, 22 Dec 2017 11:15:25 -0800
Newsgroups gmane.linux.keepalived.devel
Message-ID <5a3d59cd1a869_1d092b0419f8fc087646@hookshot-fe-31feec6.cp1-iad.github.net.mail>
  Branch: refs/heads/master
  Home:   https://github.com/acassen/keepalived
  Commit: 63fc8a605b34dd64c88334f9f86d1fceed9fd30e
      https://github.com/acassen/keepalived/commit/63fc8a605b34dd64c88334f9f86d1fceed9fd30e
  Author: Quentin Armitage <[email protected]>
  Date:   2017-12-20 (Wed, 20 Dec 2017)

  Changed paths:
    M Makefile.in
    M genhash/Makefile.in
    M keepalived/Makefile.in
    M keepalived/core/Makefile.in
    M keepalived/vrrp/Makefile.in
    M lib/Makefile.in

  Log Message:
  -----------
  Copyright update

Signed-off-by: Quentin Armitage <[email protected]>


  Commit: 7b968043d7cff17b084ac3b01ed4425be76841af
      https://github.com/acassen/keepalived/commit/7b968043d7cff17b084ac3b01ed4425be76841af
  Author: Quentin Armitage <[email protected]>
  Date:   2017-12-20 (Wed, 20 Dec 2017)

  Changed paths:
    M utils/update_source_copyright_year

  Log Message:
  -----------
  Include Makefile.in files in copyright update

Signed-off-by: Quentin Armitage <[email protected]>


  Commit: aaf623b761832e6215dcd5054deccd935febd2d2
      https://github.com/acassen/keepalived/commit/aaf623b761832e6215dcd5054deccd935febd2d2
  Author: Quentin Armitage <[email protected]>
  Date:   2017-12-22 (Fri, 22 Dec 2017)

  Changed paths:
    M doc/keepalived.conf.SYNOPSIS
    M doc/man/man5/keepalived.conf.5
    M lib/parser.c
    M lib/parser.h

  Log Message:
  -----------
  Add replaceable parameters in configuration files

Substitutable parameters can be specified. The format for defining a parameter is:
$PARAMETER=VALUE
where there must be no space before the '=' and only whitespace may preceed to '$'.
Empty values are allowed.

Parameter names can be made up of any combination of A-Za-z0-9 and _, but cannot start
with a digit.

After a parameter is defined, any occurrence of $PARAMETER followed by
whitespace, or any occurrence of ${PARAMETER} (which need not be followed by
whitespace) will be replaced by VALUE.

Replacement is recursive, so that if a parameter value itself includes a
replaceable parameter, then after the first substitution, the parameter
in the value will then be replaced; the substitution is done at replacement
time and not at definition time, so for example:

$ADDRESS_BASE=10.2.${ADDRESS_BASE_SUB}
$ADDRESS_BASE_SUB=0
    ${ADDRESS_BASE}.100/32
$ADDRESS_BASE_SUB=10
    ${ADDRESS_BASE}.100/32

will produce:
    10.2.0.100/32
    10.2.10.100/32

Note in the above examples the use of both ADDRESS_BASE and ADDRESS_BASE_SUB
required braces ({}) since the parameters were not followed by whitespace
(after the first substitution which produced 10.2.${ADDRESS_BASE_SUB}.100/32
the parameter is still not followed by whitespace).

If a parameter is not defined, it will not be replaced at all, so for
example ${UNDEF_PARAMETER} will remain in the configuration if it is
undefined; this means that existing configuration that contains a '$'
character (for example in a script definition) will not be changed so
long as no new parameter definitions are added to the configuration.

Parameter substitution works in conjunction with conditional configuration.
For example:
@main $PRIORITY=240
@backup $PRIORITY=200
...
vrrp_instance VI_0 {
    priority $PRIORITY
}

will produce:
...
vrrp_instance VI_0 }
    priority 240
}
if the config_id is main.

$IF_MAIN=@main
$IF_MAIN priority 240

will produce
 priority 240
if the config_id is main and nothing if the config_id is not main, although
why anyone would want to use this rather than simply
@main priority 240
is not known.

Signed-off-by: Quentin Armitage <[email protected]>


  Commit: e3441e68cb7209b306b7be91e914ab3c1b4005d4
      https://github.com/acassen/keepalived/commit/e3441e68cb7209b306b7be91e914ab3c1b4005d4
  Author: pqarmitage <[email protected]>
  Date:   2017-12-22 (Fri, 22 Dec 2017)

  Changed paths:
    M Makefile.in
    M doc/keepalived.conf.SYNOPSIS
    M doc/man/man5/keepalived.conf.5
    M genhash/Makefile.in
    M keepalived/Makefile.in
    M keepalived/core/Makefile.in
    M keepalived/vrrp/Makefile.in
    M lib/Makefile.in
    M lib/parser.c
    M lib/parser.h
    M utils/update_source_copyright_year

  Log Message:
  -----------
  Merge pull request #727 from pqarmitage/fixes

Add configurable parameters for configurations


Compare: https://github.com/acassen/keepalived/compare/2fe3f8ecfbf6...e3441e68cb72

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot

_______________________________________________
Keepalived-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/keepalived-devel