mirror of
https://github.com/ansible/awx.git
synced 2026-01-11 18:09:57 -03:30
Merge pull request #5296 from rayterrill/patch-1
Update custom_virtualenvs.md Reviewed-by: https://github.com/apps/softwarefactory-project-zuul
This commit is contained in:
commit
84b5fb89a3
@ -26,12 +26,12 @@ first if absent:
|
||||
Now, we need to tell Tower to look into this directory for custom venvs. For that,
|
||||
we can add this directory to the `CUSTOM_VENV_PATHS` setting as:
|
||||
|
||||
$ HTTP PATCH /api/v2/settings/system {'CUSTOM_VENV_PATHS': ["/opt/my-envs/"]}
|
||||
$ HTTP PATCH /api/v2/settings/system/ {'CUSTOM_VENV_PATHS': ["/opt/my-envs/"]}
|
||||
|
||||
If we have venvs spanned over multiple directories, we can add all the paths and
|
||||
Tower will aggregate venvs from them:
|
||||
|
||||
$ HTTP PATCH /api/v2/settings/system {'CUSTOM_VENV_PATHS': ["/path/1/to/venv/",
|
||||
$ HTTP PATCH /api/v2/settings/system/ {'CUSTOM_VENV_PATHS': ["/path/1/to/venv/",
|
||||
"/path/2/to/venv/",
|
||||
"/path/3/to/venv/"]}
|
||||
|
||||
@ -146,7 +146,7 @@ Project, or Job Template level:
|
||||
|
||||
Content-Type: application/json
|
||||
{
|
||||
'custom_virtualenv': '/opt/my-envs/custom-venv'
|
||||
'custom_virtualenv': '/opt/my-envs/custom-venv/'
|
||||
}
|
||||
|
||||
An HTTP `GET` request to `/api/v2/config/` will provide a list of
|
||||
@ -154,8 +154,8 @@ detected installed virtualenvs:
|
||||
|
||||
{
|
||||
"custom_virtualenvs": [
|
||||
"/opt/my-envs/custom-venv",
|
||||
"/opt/my-envs/my-other-custom-venv",
|
||||
"/opt/my-envs/custom-venv/",
|
||||
"/opt/my-envs/my-other-custom-venv/",
|
||||
],
|
||||
...
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user