Commit 134ee868 by Ned Batchelder

Install course-discovery into devstack

parent 472768af
......@@ -21,6 +21,8 @@ discovery_gunicorn_port: 8381
discovery_environment:
DISCOVERY_CFG: "{{ COMMON_CFG_DIR }}/{{ discovery_service_name }}.yml"
discovery_user: "{{ discovery_service_name }}"
discovery_home: "{{ COMMON_APP_DIR }}/{{ discovery_service_name }}"
#
# OS packages
......
......@@ -23,6 +23,8 @@ dependencies:
edx_django_service_repo: 'course-discovery'
edx_django_service_version: '{{ DISCOVERY_VERSION }}'
edx_django_service_name: '{{ discovery_service_name }}'
edx_django_service_user: '{{ discovery_user }}'
edx_django_service_home: '{{ COMMON_APP_DIR }}/{{ discovery_service_name }}'
edx_django_service_config_overrides: '{{ discovery_service_config_overrides }}'
edx_django_service_debian_pkgs_extra: '{{ discovery_debian_pkgs }}'
edx_django_service_gunicorn_port: '{{ discovery_gunicorn_port }}'
......
......@@ -232,6 +232,7 @@
owner: root
group: "{{ common_web_user }}"
mode: 0640
when: nginx_app_dir is defined
notify: reload nginx
tags:
- install
......@@ -244,6 +245,7 @@
state: link
owner: root
group: root
when: nginx_app_dir is defined
notify: reload nginx
tags:
- install
......
......@@ -62,6 +62,13 @@ localdev_accounts:
repo: "credentials"
}
- {
user: "{{ discovery_user|default('None') }}",
home: "{{ discovery_home|default('None') }}",
env: "discovery_env",
repo: "discovery"
}
# Helpful system packages for local dev
local_dev_pkgs:
- vim
......
......@@ -17,6 +17,7 @@
COMMON_SECURITY_UPDATES: true
SECURITY_UPGRADE_ON_ANSIBLE: true
MONGO_AUTH: false
DISCOVERY_URL_ROOT: 'http://localhost:{{ DISCOVERY_NGINX_PORT }}'
vars_files:
- roles/edxapp/vars/devstack.yml
roles:
......@@ -36,6 +37,7 @@
- ecommerce
- role: ecomworker
ECOMMERCE_WORKER_BROKER_HOST: 127.0.0.1
- discovery
- role: notifier
NOTIFIER_DIGEST_TASK_INTERVAL: "5"
- browsers
......
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