Commit 134ee868 by Ned Batchelder

Install course-discovery into devstack

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