From 84cc7d67c0e5ef33b6336dbd031bde687e83af2c Mon Sep 17 00:00:00 2001 From: "C. R. Oldham" Date: Wed, 3 Aug 2016 12:25:14 -0600 Subject: [PATCH] Add documentation for append_minionid_config_dirs. --- conf/minion | 7 +++++++ conf/proxy | 10 ++++++++++ doc/ref/configuration/minion.rst | 19 ++++++++++++++++++- 3 files changed, 35 insertions(+), 1 deletion(-) diff --git a/conf/minion b/conf/minion index 3ba8ba00953..7270f0c73de 100644 --- a/conf/minion +++ b/conf/minion @@ -127,6 +127,13 @@ # This data may contain sensitive data and should be protected accordingly. #cachedir: /var/cache/salt/minion +# Append minion_id to these directories. Helps with +# multiple proxies and minions running on the same machine. +# Allowed elements in the list: pki_dir, cachedir, extension_modules +# Normally not needed unless running several proxies and/or minions on the same machine +# Defaults to ['cachedir'] for proxies, [] (empty list) for regular minions +#append_minionid_config_dirs: + # Verify and set permissions on configuration directories at startup. #verify_env: True diff --git a/conf/proxy b/conf/proxy index 7b835e25ea5..4e5cc3452cd 100644 --- a/conf/proxy +++ b/conf/proxy @@ -84,6 +84,16 @@ # This data may contain sensitive data and should be protected accordingly. #cachedir: /var/cache/salt/minion +# Append minion_id to these directories. Helps with +# multiple proxies and minions running on the same machine. +# Allowed elements in the list: pki_dir, cachedir, extension_modules +# Normally not needed unless running several proxies and/or minions on the same machine +# Defaults to ['cachedir'] for proxies, [] (empty list) for regular minions +# append_minionid_config_dirs: +# - cachedir + + + # Verify and set permissions on configuration directories at startup. #verify_env: True diff --git a/doc/ref/configuration/minion.rst b/doc/ref/configuration/minion.rst index 0e135ddb2a9..35f1e6a1f46 100644 --- a/doc/ref/configuration/minion.rst +++ b/doc/ref/configuration/minion.rst @@ -395,7 +395,24 @@ This directory may contain sensitive data and should be protected accordingly. cachedir: /var/cache/salt/minion -.. conf_minion:: verify_env +.. conf_minion:: append_minionid_config_dirs + +``append_minionid_config_dirs`` +------------------------------- + +Default: ``[]`` (the empty list) for regular minions, ``['cachedir']`` for proxy minions. + +Append minion_id to these configuration directories. Helps with multiple proxies +and minions running on the same machine. Allowed elements in the list: +``pki_dir``, ``cachedir``, ``extension_modules``. +Normally not needed unless running several proxies and/or minions on the same machine. + +.. code-block:: yaml + + append_minionid_config_dirs: + - pki_dir + - cachedir + ``verify_env`` --------------