Implements https://trello.com/c/1NJKBOex - Add support for using proot to run jobs in isolated environment.

This commit is contained in:
Chris Church
2014-09-11 17:00:47 -04:00
parent 40192b5172
commit 2d1580bccb
3 changed files with 186 additions and 3 deletions

View File

@@ -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)