From 7540dc90aa32976640a298db16c0219173994e4a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Javier=20B=C3=A9rtoli?= Date: Tue, 14 Dec 2021 11:12:37 -0300 Subject: [PATCH] fix(minion): update config parameter saltenv `environment` is being deprecated, renamed to `saltenv` --- salt/files/minion.d/f_defaults.conf | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/salt/files/minion.d/f_defaults.conf b/salt/files/minion.d/f_defaults.conf index 3e5c38c..577f766 100644 --- a/salt/files/minion.d/f_defaults.conf +++ b/salt/files/minion.d/f_defaults.conf @@ -575,11 +575,16 @@ schedule: # enabled and can be disabled by changing this value to False. {{ get_config('clean_dynamic_modules', 'True') }} -# Normally, the minion is not isolated to any single environment on the master +# Renamed from ``environment`` to ``saltenv``. If ``environment`` is used, +# ``saltenv`` will take its value. If both are used, ``environment`` will be +# ignored and ``saltenv`` will be used. +# Normally the minion is not isolated to any single environment on the master # when running states, but the environment can be isolated on the minion side # by statically setting it. Remember that the recommended way to manage # environments is to isolate via the top file. +#saltenv: None {{ get_config('environment', 'None') }} +{{ get_config('saltenv', 'None') }} # # Isolates the pillar environment on the minion side. This functions the same # as the environment setting, but for pillar instead of states.