mirror of
https://github.com/ansible/awx.git
synced 2026-04-13 22:19:27 -02:30
Implements https://trello.com/c/1NJKBOex - Add support for using proot to run jobs in isolated environment.
This commit is contained in:
@@ -5,6 +5,7 @@ import os
|
||||
import sys
|
||||
import glob
|
||||
from datetime import timedelta
|
||||
import tempfile
|
||||
|
||||
# Update this module's local settings from the global settings module.
|
||||
from django.conf import global_settings
|
||||
@@ -313,6 +314,18 @@ AWX_TASK_ENV = {}
|
||||
# Flag to enable/disable updating hosts M2M when saving job events.
|
||||
CAPTURE_JOB_EVENT_HOSTS = False
|
||||
|
||||
# Enable proot support for running jobs (playbook runs only).
|
||||
AWX_PROOT_ENABLED = False
|
||||
|
||||
# Command/path to proot.
|
||||
AWX_PROOT_CMD = 'proot'
|
||||
|
||||
# Additional paths to hide from jobs using proot.
|
||||
AWX_PROOT_HIDE_PATHS = []
|
||||
|
||||
# Additional paths to show for jobs using proot.
|
||||
AWX_PROOT_SHOW_PATHS = []
|
||||
|
||||
# Not possible to get list of regions without authenticating, so use this list
|
||||
# instead (based on docs from:
|
||||
# http://docs.rackspace.com/loadbalancers/api/v1.0/clb-devguide/content/Service_Access_Endpoints-d1e517.html)
|
||||
|
||||
Reference in New Issue
Block a user