Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
configuration
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
configuration
Commits
460ce71e
Commit
460ce71e
authored
Apr 24, 2018
by
George Babey
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix analytics name when calling play
Also cleaned up roles to plays to better indicate what they map to
parent
f83512f6
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
8 deletions
+8
-8
playbooks/roles/analytics_api/defaults/main.yml
+1
-1
util/jenkins/ansible-provision.sh
+7
-7
No files found.
playbooks/roles/analytics_api/defaults/main.yml
View file @
460ce71e
...
...
@@ -144,7 +144,7 @@ analytics_api_service_config_overrides:
LMS_BASE_URL
:
"
{{
ANALYTICS_API_LMS_BASE_URL
|
default('http://127.0.0.1:8000')
}}"
# db config
ANALYTICS_DATABASE
:
ANALYTICS_API_REPORTS_DB_NAME
ANALYTICS_DATABASE
:
'
{{
ANALYTICS_API_REPORTS_DB_NAME
}}'
DATABASES
:
'
{{
ANALYTICS_API_DATABASES
}}'
ELASTICSEARCH_LEARNERS_HOST
:
'
{{
ANALYTICS_API_ELASTICSEARCH_LEARNERS_HOST
}}'
ELASTICSEARCH_LEARNERS_INDEX
:
'
{{
ANALYTICS_API_ELASTICSEARCH_LEARNERS_INDEX
}}'
...
...
util/jenkins/ansible-provision.sh
View file @
460ce71e
...
...
@@ -377,22 +377,22 @@ veda_encode_worker=${video_encode_worker:-false}
video_pipeline_integration
=
${
video_pipeline
:-
false
}
declare
-A
deploy
roles
=
"edxapp forum ecommerce credentials discovery analytics_
api veda_web_frontend veda_pipeline_worker veda_encode_worker video_pipeline_integration notifier xqueue xserver certs demo testcourses"
plays
=
"edxapp forum ecommerce credentials discovery analytics
api veda_web_frontend veda_pipeline_worker veda_encode_worker video_pipeline_integration notifier xqueue xserver certs demo testcourses"
for
role
in
$role
s
;
do
deploy[
$
role
]=
${
!role
}
for
play
in
$play
s
;
do
deploy[
$
play
]=
${
!play
}
done
# If reconfigure was selected or if starting from an ubuntu 16.04 AMI
# run non-deploy tasks for all
role
s
# run non-deploy tasks for all
play
s
if
[[
$reconfigure
==
"true"
||
$server_type
==
"full_edx_installation_from_scratch"
]]
;
then
cat
$extra_vars_file
run_ansible edx_continuous_integration.yml
-i
"
${
deploy_host
}
,"
$extra_var_arg
--user
ubuntu
fi
if
[[
$reconfigure
!=
"true"
&&
$server_type
==
"full_edx_installation"
]]
;
then
# Run deploy tasks for the
role
s selected
for
i
in
$
role
s
;
do
# Run deploy tasks for the
play
s selected
for
i
in
$
play
s
;
do
if
[[
${
deploy
[
$i
]
}
==
"true"
]]
;
then
cat
$extra_vars_file
run_ansible
${
i
}
.yml
-i
"
${
deploy_host
}
,"
$extra_var_arg
--user
ubuntu
...
...
@@ -403,7 +403,7 @@ if [[ $reconfigure != "true" && $server_type == "full_edx_installation" ]]; then
done
fi
# deploy the edx_ansible
role
# deploy the edx_ansible
play
run_ansible edx_ansible.yml
-i
"
${
deploy_host
}
,"
$extra_var_arg
--user
ubuntu
cat
$sandbox_secure_vars_file
$sandbox_internal_vars_file
$extra_vars_file
|
grep
-v
-E
"_version|migrate_db"
>
${
extra_vars_file
}
_clean
ansible
-c
ssh
-i
"
${
deploy_host
}
,"
$deploy_host
-m
copy
-a
"src=
${
extra_vars_file
}
_clean dest=/edx/app/edx_ansible/server-vars.yml"
-u
ubuntu
-b
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment