From 766f8cf988abc9a8dc8cfeb41e2c7d6e21daa6b3 Mon Sep 17 00:00:00 2001 From: "Daniel A. Wozniak" Date: Sat, 22 Jun 2024 01:01:43 -0700 Subject: [PATCH] Add note to virtualenv state docs about onedir --- salt/states/virtualenv_mod.py | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/salt/states/virtualenv_mod.py b/salt/states/virtualenv_mod.py index 957f44265bc..7981ec08ac5 100644 --- a/salt/states/virtualenv_mod.py +++ b/salt/states/virtualenv_mod.py @@ -77,7 +77,9 @@ def managed( Prefer wheel archives (requires pip >= 1.4). python: None - Python executable used to build the virtualenv + Python executable used to build the virtualenv. When Salt is installed + from a onedir package. You will likely want to specify which python + interpertet should be used. user: None The user under which to run virtualenv and pip. @@ -131,6 +133,12 @@ def managed( - requirements: salt://REQUIREMENTS.txt - env_vars: PATH_VAR: '/usr/local/bin/' + + Current versions of Salt use onedir packages and will use onedir python + interpreter by default. If you've installed Salt via out package + repository. You will likely want to provide the path to the interpreter + with wich you would like to be used to create the virtual envrionment. The + interperter can be sepcified by providing the `python` option. """ ret = {"name": name, "result": True, "comment": "", "changes": {}}