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
OpenEdx
configuration
Commits
cd9f2375
Commit
cd9f2375
authored
9 years ago
by
Max Rothman
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #2092 from edx/max/add-missing-replica-scripts
Add missing scripts to connect ro to prod dbs
parents
a0c2668e
92292ecb
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
9 deletions
+22
-9
playbooks/roles/ad_hoc_reporting/tasks/main.yml
+22
-9
No files found.
playbooks/roles/ad_hoc_reporting/tasks/main.yml
View file @
cd9f2375
...
...
@@ -44,9 +44,11 @@
tags
:
-
scripts
#
These templates rely on there being a global
#These templates rely on there being a global
# read_only mysql user, you must override the default
# in order for these templates to be written out
# in order for these templates to be written out.
#Also, all of the *_REPLICA_DB_HOST vars are only defined
# in secure config files.
-
name
:
install common mysql replica scripts
template
:
>
src=edx/bin/mysql.sh.j2
...
...
@@ -59,22 +61,33 @@
-
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
:
"
{{
XQUEUE_MYSQL_REPLICA_HOST
}}"
-
db_host
:
"
{{
AD_HOC_REPORTING_
XQUEUE_MYSQL_REPLICA_HOST
}}"
db_name
:
"
{{
XQUEUE_MYSQL_DB_NAME
}}"
script_name
:
xqueue-mysql.sh
depends_on
:
"
{{
XQUEUE_MYSQL_REPLICA_HOST
|
default(None)
}}"
depends_on
:
"
{{
AD_HOC_REPORTING_
XQUEUE_MYSQL_REPLICA_HOST
|
default(None)
}}"
-
db_host
:
"
{{
ANALYTICS_API_REPORTS_REPLICA_DB_HOST
}}"
-
db_host
:
"
{{
A
D_HOC_REPORTING_A
NALYTICS_API_REPORTS_REPLICA_DB_HOST
}}"
db_name
:
"
{{
ANALYTICS_API_REPORTS_DB_NAME
}}"
script_name
:
analytics-mysql.sh
depends_on
:
"
{{
ANALYTICS_API_REPORTS_REPLICA_DB_HOST
|
default(None)
}}"
-
db_host
:
"
{{
ECOMMERCE_REPLICA_DB_HOST
}}"
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
:
"
{{
ECOMMERCE_REPLICA_DB_HOST
|
default(None)
}}"
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)
}}"
# These templates rely on there being a global
# read_only mongo user, you must override the default
...
...
This diff is collapsed.
Click to expand it.
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