From d9f5dee773d5c149bd3321fae390526c18dc77ae Mon Sep 17 00:00:00 2001 From: Matthew Jones Date: Wed, 22 Jul 2015 16:31:43 -0400 Subject: [PATCH] Change default stdout temp directory * Use /var/lib/awx on production configurations * Use /tmp for development configurations --- awx/settings/defaults.py | 3 ++- awx/settings/development.py | 2 ++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/awx/settings/defaults.py b/awx/settings/defaults.py index f99d389e52..a0b7f2497b 100644 --- a/awx/settings/defaults.py +++ b/awx/settings/defaults.py @@ -566,8 +566,9 @@ FACT_CACHE_PORT = 6564 ORG_ADMINS_CAN_SEE_ALL_USERS = True +# Control when we display stdout and where to store the temporary files for downloading STDOUT_MAX_BYTES_DISPLAY = 1000000 -STDOUT_TEMP_DIR = "/tmp" +STDOUT_TEMP_DIR = "/var/lib/awx/" # Logging configuration. LOGGING = { diff --git a/awx/settings/development.py b/awx/settings/development.py index eec9673ef9..7b31279787 100644 --- a/awx/settings/development.py +++ b/awx/settings/development.py @@ -64,6 +64,8 @@ PASSWORD_HASHERS = ( # Configure a default UUID for development only. SYSTEM_UUID = '00000000-0000-0000-0000-000000000000' +STDOUT_TEMP_DIR = "/tmp" + # If there is an `/etc/tower/settings.py`, include it. # If there is a `/etc/tower/conf.d/*.py`, include them. include(optional('/etc/tower/settings.py'), scope=locals())