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
7f642fa9
Commit
7f642fa9
authored
Mar 30, 2016
by
arbabnazar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
pass the read replica hosts list as external variables from secure repo
parent
ff6039cd
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
38 deletions
+16
-38
playbooks/roles/ad_hoc_reporting/defaults/main.yml
+13
-0
playbooks/roles/ad_hoc_reporting/tasks/main.yml
+3
-38
No files found.
playbooks/roles/ad_hoc_reporting/defaults/main.yml
View file @
7f642fa9
...
...
@@ -45,3 +45,16 @@ MONGODB_APT_KEY: "7F0CEB10"
MONGODB_APT_KEYSERVER
:
"
keyserver.ubuntu.com"
MONGODB_REPO
:
"
deb
http://downloads-distro.mongodb.org/repo/ubuntu-upstart
dist
10gen"
mongo_version
:
3.0.8
# AD_HOC_REPORTING_REPLICA_DB_HOSTS:
# - db_host: "{{ EDXAPP_MYSQL_REPLICA_HOST }}"
# db_name: "{{ EDXAPP_MYSQL_DB_NAME }}"
# script_name: edxapp-mysql.sh
# #depends on no other vars
# depends_on: True
AD_HOC_REPORTING_REPLICA_DB_HOSTS
:
[]
playbooks/roles/ad_hoc_reporting/tasks/main.yml
View file @
7f642fa9
...
...
@@ -22,7 +22,7 @@
-
name
:
install system packages
apt
:
pkg
:
"
{{
item
}}"
name
:
"
{{
item
}}"
state
:
present
with_items
:
ad_hoc_reporting_debian_pkgs
tags
:
...
...
@@ -45,7 +45,7 @@
-
name
:
install mongo shell
apt
:
pkg
:
mongodb-org-shell={{ mongo_version }}
name
:
mongodb-org-shell={{ mongo_version }}
state
:
present
install_recommends
:
yes
force
:
yes
...
...
@@ -92,42 +92,7 @@
-
scripts
-
scripts:mysql
-
install:code
with_items
:
-
db_host
:
"
{{
EDXAPP_MYSQL_REPLICA_HOST
}}"
db_name
:
"
{{
EDXAPP_MYSQL_DB_NAME
}}"
script_name
:
edxapp-mysql.sh
#depends on no other vars
depends_on
:
True
-
db_host
:
"
{{
EDXAPP_MYSQL_CSMH_REPLICA_HOST
}}"
db_name
:
"
{{
EDXAPP_MYSQL_CSMH_DB_NAME
}}"
script_name
:
csmh-mysql.sh
depends_on
:
True
-
db_host
:
"
{{
AD_HOC_REPORTING_XQUEUE_MYSQL_REPLICA_HOST
}}"
db_name
:
"
{{
XQUEUE_MYSQL_DB_NAME
}}"
script_name
:
xqueue-mysql.sh
depends_on
:
"
{{
AD_HOC_REPORTING_XQUEUE_MYSQL_REPLICA_HOST
|
default(None)
}}"
-
db_host
:
"
{{
AD_HOC_REPORTING_ANALYTICS_API_REPORTS_REPLICA_DB_HOST
}}"
db_name
:
"
{{
ANALYTICS_API_REPORTS_DB_NAME
}}"
script_name
:
analytics-mysql.sh
depends_on
:
"
{{
AD_HOC_REPORTING_ANALYTICS_API_REPORTS_REPLICA_DB_HOST
|
default(None)
}}"
-
db_host
:
"
{{
AD_HOC_REPORTING_ANALYTICS_API_DEFAULT_DB_HOST
}}"
db_name
:
"
{{
ANALYTICS_API_DEFAULT_DB_NAME
}}"
script_name
:
analytics-django-mysql.sh
depends_on
:
"
{{
AD_HOC_REPORTING_ANALYTICS_API_DEFAULT_DB_HOST
|
default(None)
}}"
-
db_host
:
"
{{
AD_HOC_REPORTING_ECOMMERCE_REPLICA_DB_HOST
}}"
db_name
:
"
{{
ECOMMERCE_DEFAULT_DB_NAME
}}"
script_name
:
ecommerce-mysql.sh
depends_on
:
"
{{
AD_HOC_REPORTING_ECOMMERCE_REPLICA_DB_HOST
|
default(None)
}}"
-
db_host
:
"
{{
AD_HOC_REPORTING_INSIGHTS_REPLICA_DB_HOST
}}"
db_name
:
"
{{
INSIGHTS_DATABASE_NAME
}}"
script_name
:
insights-mysql.sh
depends_on
:
"
{{
AD_HOC_REPORTING_INSIGHTS_REPLICA_DB_HOST
|
default(None)
}}"
with_items
:
AD_HOC_REPORTING_REPLICA_DB_HOSTS
# These templates rely on there being a global
# read_only mongo user, you must override the default
...
...
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