Commit 6837b86d by John Jarvis

task ordering

parent c73eec0d
...@@ -19,6 +19,7 @@ ANALYTICS_API_NEWRELIC_APPNAME: "your Newrelic appname" ...@@ -19,6 +19,7 @@ ANALYTICS_API_NEWRELIC_APPNAME: "your Newrelic appname"
ANALYTICS_API_PIP_EXTRA_ARGS: "-i {{ COMMON_PYPI_MIRROR_URL }}" ANALYTICS_API_PIP_EXTRA_ARGS: "-i {{ COMMON_PYPI_MIRROR_URL }}"
ANALYTICS_API_NGINX_PORT: "18100" ANALYTICS_API_NGINX_PORT: "18100"
ANALYTICS_API_VERSION: "master"
# #
# vars are namespace with the module name. # vars are namespace with the module name.
# #
...@@ -41,7 +42,6 @@ analytics_api_gunicorn_timeout: "300" ...@@ -41,7 +42,6 @@ analytics_api_gunicorn_timeout: "300"
analytics_api_django_settings: "production" analytics_api_django_settings: "production"
analytics_api_source_repo: "git@{{ COMMON_GIT_MIRROR }}:edx/edx-analytics-data-api" analytics_api_source_repo: "git@{{ COMMON_GIT_MIRROR }}:edx/edx-analytics-data-api"
analytics_api_git_ssh_opts: "-o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -i {{ analytics_api_git_identity_file }}" analytics_api_git_ssh_opts: "-o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -i {{ analytics_api_git_identity_file }}"
ANALYTICS_API_VERSION: "master"
analytics_api_git_identity_file: "{{ analytics_api_app_dir }}/git-identity" analytics_api_git_identity_file: "{{ analytics_api_app_dir }}/git-identity"
analytics_api_log_dir: "{{ COMMON_LOG_DIR }}/{{ analytics_api_service_name }}" analytics_api_log_dir: "{{ COMMON_LOG_DIR }}/{{ analytics_api_service_name }}"
......
...@@ -14,6 +14,13 @@ ...@@ -14,6 +14,13 @@
notify: "restart the analytics service" notify: "restart the analytics service"
sudo_user: "{{ analytics_api_user }}" sudo_user: "{{ analytics_api_user }}"
- name: write out app config file
template: >
src=edx/app/analytics-api/analytics-api.yaml.j2
dest={{ COMMON_CFG_DIR }}/{{ analytics_api_service_name }}.yaml
mode=0644 owner={{ analytics_api_user }} group={{ analytics_api_user }}
notify: restart the analytics service
- name: run collectstatic - name: run collectstatic
shell: > shell: >
chdir={{ analytics_api_code_dir }} chdir={{ analytics_api_code_dir }}
...@@ -30,13 +37,6 @@ ...@@ -30,13 +37,6 @@
notify: restart the analytics service notify: restart the analytics service
with_items: analytics_api_requirements with_items: analytics_api_requirements
- name: write out app config file
template: >
src=edx/app/analytics-api/analytics-api.yaml.j2
dest={{ COMMON_CFG_DIR }}/{{ analytics_api_service_name }}.yaml
mode=0644 owner={{ analytics_api_user }} group={{ analytics_api_user }}
notify: restart the analytics service
- name: write out the supervisior wrapper - name: write out the supervisior wrapper
template: > template: >
src=edx/app/analytics-api/analytics-api.sh.j2 src=edx/app/analytics-api/analytics-api.sh.j2
......
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