Adding random_master to reference and updating master_shuffle.

Adding master_shuffle to the minion example config file as it is needed for multi-master PKI.
This commit is contained in:
Jered Sutton 2016-01-02 23:21:51 -06:00
parent 28b1bbbe77
commit 01dbf385ef
2 changed files with 18 additions and 1 deletions

View file

@ -20,8 +20,12 @@
# set to True, the order will be randomized instead. This can be helpful in distributing
# the load of many minions executing salt-call requests, for example, from a cron job.
# If only one master is listed, this setting is ignored and a warning will be logged.
# NOTE: If master_type is set to failover, use master_shuffle instead.
#random_master: False
# Use if master_type is set to failover.
#master_shuffle: False
# Minions can connect to multiple masters simultaneously (all masters
# are "hot"), or can be configured to failover if a master becomes
# unavailable. Multiple hot masters are configured by setting this

View file

@ -125,7 +125,7 @@ to the next master in the list if it finds the existing one is dead.
Default: ``False``
If :conf_minion:`master` is a list of addresses, shuffle them before trying to
If :conf_minion:`master` is a list of addresses and :conf_minion`master_type` is ``failover``, shuffle them before trying to
connect to distribute the minions over all available masters. This uses
Python's :func:`random.shuffle <python2:random.shuffle>` method.
@ -133,6 +133,19 @@ Python's :func:`random.shuffle <python2:random.shuffle>` method.
master_shuffle: True
``random_master``
------------------
Default: ``False``
If :conf_minion:`master` is a list of addresses, shuffle them before trying to
connect to distribute the minions over all available masters. This uses
Python's :func:`random.randint <python2:random.randint>` method.
.. code-block:: yaml
random_master: True
.. conf_minion:: retry_dns
``retry_dns``