Commit 28269752 by arbabnazar Committed by Edward Zarecor

modified the name inside all playbooks

parent e65b6661
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
# #
# From the root of configuration: # From the root of configuration:
# #
# docker build -f docker/build/course-discovery/Dockerfile . # docker build -f docker/build/discovery/Dockerfile .
# #
# This allows the dockerfile to update /edx/app/edx_ansible/edx_ansible # This allows the dockerfile to update /edx/app/edx_ansible/edx_ansible
# with the currently checked-out configuration repo. # with the currently checked-out configuration repo.
...@@ -10,19 +10,19 @@ ...@@ -10,19 +10,19 @@
FROM edxops/trusty-common:latest FROM edxops/trusty-common:latest
MAINTAINER edxops MAINTAINER edxops
ENV COURSE_DISCOVERY_VERSION=master ENV DISCOVERY_VERSION=master
ENV REPO_OWNER=edx ENV REPO_OWNER=edx
ADD . /edx/app/edx_ansible/edx_ansible ADD . /edx/app/edx_ansible/edx_ansible
WORKDIR /edx/app/edx_ansible/edx_ansible/docker/plays WORKDIR /edx/app/edx_ansible/edx_ansible/docker/plays
COPY docker/build/course-discovery/ansible_overrides.yml / COPY docker/build/discovery/ansible_overrides.yml /
RUN sudo /edx/app/edx_ansible/venvs/edx_ansible/bin/ansible-playbook course_discovery.yml \ RUN sudo /edx/app/edx_ansible/venvs/edx_ansible/bin/ansible-playbook discovery.yml \
-c local -i '127.0.0.1,' \ -c local -i '127.0.0.1,' \
-t 'install,assets,devstack:install' \ -t 'install,assets,devstack:install' \
--extra-vars="@/ansible_overrides.yml" \ --extra-vars="@/ansible_overrides.yml" \
--extra-vars="COURSE_DISCOVERY_VERSION=$COURSE_DISCOVERY_VERSION" \ --extra-vars="DISCOVERY_VERSION=$DISCOVERY_VERSION" \
--extra-vars="COMMON_GIT_PATH=$REPO_OWNER" --extra-vars="COMMON_GIT_PATH=$REPO_OWNER"
USER root USER root
......
---
discovery_gunicorn_host: 0.0.0.0
DISCOVERY_MYSQL: 'db'
DISCOVERY_DJANGO_SETTINGS_MODULE: 'discovery.settings.devstack'
DISCOVERY_ELASTICSEARCH_HOST: 'es'
...@@ -14,9 +14,9 @@ ...@@ -14,9 +14,9 @@
# structure under /home/me # structure under /home/me
# #
# |-- edx-src # |-- edx-src
# | |-- course-discovery # | |-- discovery
# | |-- cs_comments_service # | |-- cs_comments_service
# | |-- edx_course_discovery # | |-- edx_discovery
# | |-- edx-platform # | |-- edx-platform
# | |-- xqueue # | |-- xqueue
......
- name: Deploy Course Discovery - name: Deploy Discovery
hosts: all hosts: all
sudo: True sudo: True
gather_facts: True gather_facts: True
...@@ -7,6 +7,6 @@ ...@@ -7,6 +7,6 @@
serial: "{{ serial_count }}" serial: "{{ serial_count }}"
roles: roles:
- nginx - nginx
- role: course_discovery - role: discovery
nginx_default_sites: nginx_default_sites:
- course_discovery - discovery
\ No newline at end of file \ No newline at end of file
...@@ -6,13 +6,13 @@ ...@@ -6,13 +6,13 @@
ENABLE_DATADOG: False ENABLE_DATADOG: False
ENABLE_SPLUNKFORWARDER: False ENABLE_SPLUNKFORWARDER: False
ENABLE_NEWRELIC: False ENABLE_NEWRELIC: False
CLUSTER_NAME: 'course-discovery' CLUSTER_NAME: 'discovery'
roles: roles:
- aws - aws
- role: nginx - role: nginx
nginx_default_sites: nginx_default_sites:
- course-discovery - discovery
- course_discovery - discovery
- role: datadog - role: datadog
when: COMMON_ENABLE_DATADOG when: COMMON_ENABLE_DATADOG
- role: splunkforwarder - role: splunkforwarder
......
...@@ -78,8 +78,7 @@ ...@@ -78,8 +78,7 @@
value: "{{ item[0].public_dns_name }}" value: "{{ item[0].public_dns_name }}"
with_nested: with_nested:
- ec2.instances - ec2.instances
- ['studio', 'ecommerce', 'preview', 'programs', 'course-discovery', 'credentials'] - ['studio', 'ecommerce', 'preview', 'programs', 'discovery', 'credentials']
- name: Add new instance to host group - name: Add new instance to host group
local_action: local_action:
......
...@@ -175,10 +175,9 @@ CREDENTIALS_NGINX_PORT: 80 ...@@ -175,10 +175,9 @@ CREDENTIALS_NGINX_PORT: 80
CREDENTIALS_SSL_NGINX_PORT: 443 CREDENTIALS_SSL_NGINX_PORT: 443
CREDENTIALS_VERSION: $credentials_version CREDENTIALS_VERSION: $credentials_version
COURSE_DISCOVERY_NGINX_PORT: 80 DISCOVERY_NGINX_PORT: 80
COURSE_DISCOVERY_SSL_NGINX_PORT: 443 DISCOVERY_SSL_NGINX_PORT: 443
COURSE_DISCOVERY_VERSION: $course_discovery_version DISCOVERY_VERSION: $discovery_version
NGINX_SET_X_FORWARDED_HEADERS: True NGINX_SET_X_FORWARDED_HEADERS: True
NGINX_REDIRECT_TO_HTTPS: True NGINX_REDIRECT_TO_HTTPS: True
EDX_ANSIBLE_DUMP_VARS: true EDX_ANSIBLE_DUMP_VARS: true
...@@ -260,6 +259,7 @@ PROGRAMS_LMS_URL_ROOT: "https://${deploy_host}" ...@@ -260,6 +259,7 @@ PROGRAMS_LMS_URL_ROOT: "https://${deploy_host}"
PROGRAMS_URL_ROOT: "https://programs-${deploy_host}" PROGRAMS_URL_ROOT: "https://programs-${deploy_host}"
PROGRAMS_SOCIAL_AUTH_REDIRECT_IS_HTTPS: true PROGRAMS_SOCIAL_AUTH_REDIRECT_IS_HTTPS: true
<<<<<<< HEAD
CREDENTIALS_LMS_URL_ROOT: "https://${deploy_host}" CREDENTIALS_LMS_URL_ROOT: "https://${deploy_host}"
CREDENTIALS_URL_ROOT: "https://credentials-${deploy_host}" CREDENTIALS_URL_ROOT: "https://credentials-${deploy_host}"
CREDENTIALS_SOCIAL_AUTH_REDIRECT_IS_HTTPS: true CREDENTIALS_SOCIAL_AUTH_REDIRECT_IS_HTTPS: true
...@@ -268,6 +268,11 @@ COURSE_DISCOVERY_ECOMMERCE_API_URL: "https://ecommerce-${deploy_host}/api/v2" ...@@ -268,6 +268,11 @@ COURSE_DISCOVERY_ECOMMERCE_API_URL: "https://ecommerce-${deploy_host}/api/v2"
COURSE_DISCOVERY_OAUTH_URL_ROOT: "https://${deploy_host}" COURSE_DISCOVERY_OAUTH_URL_ROOT: "https://${deploy_host}"
COURSE_DISCOVERY_URL_ROOT: "https://course-discovery-${deploy_host}" COURSE_DISCOVERY_URL_ROOT: "https://course-discovery-${deploy_host}"
COURSE_DISCOVERY_SOCIAL_AUTH_REDIRECT_IS_HTTPS: true COURSE_DISCOVERY_SOCIAL_AUTH_REDIRECT_IS_HTTPS: true
=======
DISCOVERY_OAUTH_URL_ROOT: "https://${deploy_host}"
DISCOVERY_URL_ROOT: "https://discovery-${deploy_host}"
DISCOVERY_SOCIAL_AUTH_REDIRECT_IS_HTTPS: true
>>>>>>> 5f930fc... modified the name inside all playbooks
EOF EOF
fi fi
...@@ -313,7 +318,11 @@ EOF ...@@ -313,7 +318,11 @@ EOF
fi fi
declare -A deploy declare -A deploy
<<<<<<< HEAD
roles="edxapp forum ecommerce programs credentials course_discovery notifier xqueue xserver certs demo testcourses" roles="edxapp forum ecommerce programs credentials course_discovery notifier xqueue xserver certs demo testcourses"
=======
roles="edxapp forum ecommerce programs discovery notifier xqueue xserver certs demo testcourses"
>>>>>>> 5f930fc... modified the name inside all playbooks
for role in $roles; do for role in $roles; do
deploy[$role]=${!role} deploy[$role]=${!role}
done done
......
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