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
0e0a0043
Commit
0e0a0043
authored
May 15, 2015
by
Edward Zarecor
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1970 from edx/e0d/add-replicas
E0d/add replicas
parents
088582a2
5a99bdab
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
41 additions
and
1 deletions
+41
-1
playbooks/edx-east/create_db_and_users.yml
+5
-0
playbooks/roles/ad_hoc_reporting/tasks/main.yml
+36
-1
No files found.
playbooks/edx-east/create_db_and_users.yml
View file @
0e0a0043
...
@@ -64,6 +64,8 @@
...
@@ -64,6 +64,8 @@
login_user={{ item.value.login_user }}
login_user={{ item.value.login_user }}
login_password={{ item.value.login_password }}
login_password={{ item.value.login_password }}
with_dict
:
databases
with_dict
:
databases
tags
:
-
dbs
-
name
:
create mysql users and assign privileges
-
name
:
create mysql users and assign privileges
mysql_user
:
>
mysql_user
:
>
...
@@ -76,3 +78,5 @@
...
@@ -76,3 +78,5 @@
login_password={{ item.value.login_password }}
login_password={{ item.value.login_password }}
append_privs=yes
append_privs=yes
with_dict
:
database_users
with_dict
:
database_users
tags
:
-
users
\ No newline at end of file
playbooks/roles/ad_hoc_reporting/tasks/main.yml
View file @
0e0a0043
...
@@ -41,6 +41,8 @@
...
@@ -41,6 +41,8 @@
mode=0755
mode=0755
with_items
:
with_items
:
-
/edx/bin
-
/edx/bin
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
# read_only mysql user, you must override the default
...
@@ -55,6 +57,8 @@
...
@@ -55,6 +57,8 @@
db_name
:
"
{{
EDXAPP_MYSQL_DB_NAME
}}"
db_name
:
"
{{
EDXAPP_MYSQL_DB_NAME
}}"
script_name
:
edxapp-mysql.sh
script_name
:
edxapp-mysql.sh
when
:
COMMON_MYSQL_READ_ONLY_PASS is defined
when
:
COMMON_MYSQL_READ_ONLY_PASS is defined
tags
:
-
scripts
-
name
:
install xqueue mysql replica scripts
-
name
:
install xqueue mysql replica scripts
template
:
>
template
:
>
...
@@ -65,7 +69,35 @@
...
@@ -65,7 +69,35 @@
-
db_host
:
"
{{
XQUEUE_MYSQL_REPLICA_HOST
}}"
-
db_host
:
"
{{
XQUEUE_MYSQL_REPLICA_HOST
}}"
db_name
:
"
{{
XQUEUE_MYSQL_DB_NAME
}}"
db_name
:
"
{{
XQUEUE_MYSQL_DB_NAME
}}"
script_name
:
xqueue-mysql.sh
script_name
:
xqueue-mysql.sh
when
:
COMMON_MYSQL_READ_ONLY_PASS is defined and XQUEUE_MYSQL_DB_HOST is defined
when
:
COMMON_MYSQL_READ_ONLY_PASS is defined and XQUEUE_MYSQL_REPLICA_HOST is defined
tags
:
-
scripts
-
name
:
install analytics api mysql replica scripts
template
:
>
src=edx/bin/mysql.sh.j2
dest=/edx/bin/{{ COMMON_ENVIRONMENT }}-{{ COMMON_DEPLOYMENT }}-{{ item.script_name }}
mode=0755 owner=root group=root
with_items
:
-
db_host
:
"
{{
ANALYTICS_API_REPORTS_REPLICA_DB_HOST
}}"
db_name
:
"
{{
ANALYTICS_API_REPORTS_DB_NAME
}}"
script_name
:
analytics-mysql.sh
when
:
COMMON_MYSQL_READ_ONLY_PASS is defined and ANALYTICS_API_REPORTS_REPLICA_DB_HOST is defined
tags
:
-
scripts
-
name
:
install ecommerce mysql replica scripts
template
:
>
src=edx/bin/mysql.sh.j2
dest=/edx/bin/{{ COMMON_ENVIRONMENT }}-{{ COMMON_DEPLOYMENT }}-{{ item.script_name }}
mode=0755 owner=root group=root
with_items
:
-
db_host
:
"
{{
ECOMMERCE_REPLICA_DB_HOST
}}"
db_name
:
"
{{
ECOMMERCE_DEFAULT_DB_NAME
}}"
script_name
:
ecommerce-mysql.sh
when
:
COMMON_MYSQL_READ_ONLY_PASS is defined and ECOMMERCE_REPLICA_DB_HOST is defined
tags
:
-
scripts
# These templates rely on there being a global
# These templates rely on there being a global
# read_only mongo user, you must override the default
# read_only mongo user, you must override the default
...
@@ -85,3 +117,5 @@
...
@@ -85,3 +117,5 @@
db_port
:
"
{{
FORUM_MONGO_PORT
}}"
db_port
:
"
{{
FORUM_MONGO_PORT
}}"
script_name
:
forum-mongo.sh
script_name
:
forum-mongo.sh
when
:
COMMON_MONGO_READ_ONLY_PASS is defined
when
:
COMMON_MONGO_READ_ONLY_PASS is defined
tags
:
-
scripts
\ No newline at end of file
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