Commit eb677e77 by Joe Blaylock

WIP messing around

parent 59d86363
- hosts: tag_environment_stage:&tag_function_webserver - hosts: tag_environment_stage:&tag_function_webserver
sudo: True sudo: True
vars_prompt:
- name: "migrate_db"
prompt: "Should this playbook run database migrations? (<Return> for false, anything else for true)"
default: false
private: no
vars: vars:
secure_dir: ../../../edx-secret/ansible secure_dir: ../../../edx-secret/ansible
local_dir: ../../../edx-secret/ansible/local local_dir: ../../../edx-secret/ansible/local
...@@ -7,9 +12,11 @@ ...@@ -7,9 +12,11 @@
- "{{ secure_dir }}/vars/edxapp_stage_vars.yml" - "{{ secure_dir }}/vars/edxapp_stage_vars.yml"
- "{{ secure_dir }}/vars/users.yml" - "{{ secure_dir }}/vars/users.yml"
- "{{ secure_dir }}/vars/edxapp_stage_users.yml" - "{{ secure_dir }}/vars/edxapp_stage_users.yml"
#- "{{ secure_dir }}/vars/shib_stage_vars.yml"
roles: roles:
- common - common
- nginx - nginx
# - gunicorn
- edxapp - edxapp
- apache
- shibboleth
#- in_production #- in_production
...@@ -12,6 +12,7 @@ ...@@ -12,6 +12,7 @@
- lms-preview - lms-preview
- lms-xml - lms-xml
- deploy - deploy
- jrbl
# Gather lms assets using django if necessary(When rake doesn't know how) # Gather lms assets using django if necessary(When rake doesn't know how)
- name: gather lms static assets with django - name: gather lms static assets with django
...@@ -27,6 +28,7 @@ ...@@ -27,6 +28,7 @@
- lms-preview - lms-preview
- lms-xml - lms-xml
- deploy - deploy
- jrbl
# Gather cms assets using rake if possible # Gather cms assets using rake if possible
...@@ -42,6 +44,7 @@ ...@@ -42,6 +44,7 @@
tags: tags:
- cms - cms
- deploy - deploy
- jrbl
- name: gather cms static assets with django - name: gather cms static assets with django
shell: SERVICE_VARIANT={{ cms_variant }} django-admin.py collectstatic --pythonpath={{ edx_platform_code_dir }} --settings=lms.envs.aws --noinput --verbosity=0 shell: SERVICE_VARIANT={{ cms_variant }} django-admin.py collectstatic --pythonpath={{ edx_platform_code_dir }} --settings=lms.envs.aws --noinput --verbosity=0
...@@ -54,6 +57,7 @@ ...@@ -54,6 +57,7 @@
tags: tags:
- cms - cms
- deploy - deploy
- jrbl
- name: update cms templates - name: update cms templates
shell: SERVICE_VARIANT={{ cms_variant }} django-admin.py update_templates --pythonpath={{ edx_platform_code_dir }} --settings=cms.envs.aws shell: SERVICE_VARIANT={{ cms_variant }} django-admin.py update_templates --pythonpath={{ edx_platform_code_dir }} --settings=cms.envs.aws
......
...@@ -161,6 +161,7 @@ ...@@ -161,6 +161,7 @@
- lms-xml - lms-xml
- cms - cms
- deploy - deploy
- jrbl
- name: check if django can collect lms static data - name: check if django can collect lms static data
shell: SERVICE_VARIANT={{ lms_variant }} django-admin.py help collectstatic --pythonpath={{ edx_platform_code_dir }} --settings=lms.envs.aws shell: SERVICE_VARIANT={{ lms_variant }} django-admin.py help collectstatic --pythonpath={{ edx_platform_code_dir }} --settings=lms.envs.aws
...@@ -174,6 +175,7 @@ ...@@ -174,6 +175,7 @@
- lms-preview - lms-preview
- lms-xml - lms-xml
- deploy - deploy
- jrbl
- name: check if django can collect cms static data - name: check if django can collect cms static data
shell: SERVICE_VARIANT={{ lms_variant }} django-admin.py help collectstatic --pythonpath={{ edx_platform_code_dir }} --settings=cms.envs.aws shell: SERVICE_VARIANT={{ lms_variant }} django-admin.py help collectstatic --pythonpath={{ edx_platform_code_dir }} --settings=cms.envs.aws
...@@ -185,6 +187,7 @@ ...@@ -185,6 +187,7 @@
tags: tags:
- cms - cms
- deploy - deploy
- jrbl
- name: check if django can update cms templates - name: check if django can update cms templates
shell: SERVICE_VARIANT={{ cms_variant }} django-admin.py help update_templates --pythonpath={{ edx_platform_code_dir }} --settings=cms.envs.aws shell: SERVICE_VARIANT={{ cms_variant }} django-admin.py help update_templates --pythonpath={{ edx_platform_code_dir }} --settings=cms.envs.aws
...@@ -196,6 +199,7 @@ ...@@ -196,6 +199,7 @@
tags: tags:
- cms - cms
- deploy - deploy
- jrbl
- include: collect_static.yml - include: collect_static.yml
when: celery_worker is not defined when: celery_worker is not defined
......
...@@ -91,7 +91,7 @@ generic_env_config: &edxapp_generic_env ...@@ -91,7 +91,7 @@ generic_env_config: &edxapp_generic_env
'WIKI_ENABLED': true 'WIKI_ENABLED': true
'SYSLOG_SERVER': 'syslog.a.m.i4x.org' 'SYSLOG_SERVER': 'syslog.a.m.i4x.org'
'SITE_NAME': 'example.com' 'SITE_NAME': 'example.com'
'LOG_DIR': '/mnt/logs/edx' 'LOG_DIR': '/logs/edx'
'MEDIA_URL': '' 'MEDIA_URL': ''
'ANALYTICS_SERVER_URL': '' 'ANALYTICS_SERVER_URL': ''
'EEDBACK_SUBMISSION_EMAIL': '' 'EEDBACK_SUBMISSION_EMAIL': ''
......
...@@ -17,7 +17,7 @@ ora_gunicorn_port: 8091 ...@@ -17,7 +17,7 @@ ora_gunicorn_port: 8091
# services on a single server. # services on a single server.
ora_env_config: ora_env_config:
"LOGGING_ENV": "prod-grader" "LOGGING_ENV": "prod-grader"
"LOG_DIR": "/mnt/logs" "LOG_DIR": "/logs"
"REQUESTS_TIMEOUT": "5" "REQUESTS_TIMEOUT": "5"
"QUEUES_TO_PULL_FROM": "open-ended" "QUEUES_TO_PULL_FROM": "open-ended"
"TIME_BETWEEN_XQUEUE_PULLS": "5" "TIME_BETWEEN_XQUEUE_PULLS": "5"
......
...@@ -20,7 +20,7 @@ xqueue_env_config: ...@@ -20,7 +20,7 @@ xqueue_env_config:
'open-ended': !!null 'open-ended': !!null
'XQUEUE_WORKERS_PER_QUEUE': 12 'XQUEUE_WORKERS_PER_QUEUE': 12
'LOGGING_ENV' : 'sandbox' 'LOGGING_ENV' : 'sandbox'
'LOG_DIR' : '/mnt/logs' 'LOG_DIR' : '/logs'
'SYSLOG_SERVER' : 'syslog.a.m.i4x.org' 'SYSLOG_SERVER' : 'syslog.a.m.i4x.org'
'RABBIT_HOST' : 'localhost' 'RABBIT_HOST' : 'localhost'
'S3_BUCKET_PREFIX' : 'sandbox-bucket' 'S3_BUCKET_PREFIX' : 'sandbox-bucket'
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment