Merge pull request #2056 from seanchannel/develop

add backup_mode to minion config and config reference
This commit is contained in:
Thomas S Hatch 2012-09-21 19:14:04 -07:00
commit f1972b2624
2 changed files with 26 additions and 0 deletions

View File

@ -49,6 +49,19 @@
# set cache_jobs to True
#cache_jobs: False
# Backup files that are replaced by file.managed and file.recurse under
# 'cachedir'/file_backups relative to their original location and appended
# with a timestamp. The only valid setting is "minion". Disabled by default.
#
# Alternatively this can be specified for each file in state files:
#
# /etc/ssh/sshd_config:
# file.managed:
# - source: salt://ssh/sshd_config
# - backup: minion
#
#backup_mode: minion
# When waiting for a master to accept the minion's public key, salt will
# continuously attempt to reconnect until successful. This is the time, in
# seconds, between those reconnection attempts.

View File

@ -112,6 +112,19 @@ The location for minion cache data.
cachedir: /var/cache/salt
.. conf_minion:: cachedir
``backup_mode``
---------------
Default: ``[]``
Backup files replaced by file.managed and file.recurse under cachedir.
.. code-block:: yaml
backup_mode: minion
.. conf_minion:: cache_jobs
``cache_jobs``