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
af3c280c
Commit
af3c280c
authored
Jun 12, 2015
by
Max Rothman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Refactor to remove repeated tasks
parent
d9bc58d2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
31 deletions
+8
-31
playbooks/roles/ad_hoc_reporting/tasks/main.yml
+8
-31
No files found.
playbooks/roles/ad_hoc_reporting/tasks/main.yml
View file @
af3c280c
...
@@ -52,52 +52,29 @@
...
@@ -52,52 +52,29 @@
src=edx/bin/mysql.sh.j2
src=edx/bin/mysql.sh.j2
dest=/edx/bin/{{ COMMON_ENVIRONMENT }}-{{ COMMON_DEPLOYMENT }}-{{ item.script_name }}
dest=/edx/bin/{{ COMMON_ENVIRONMENT }}-{{ COMMON_DEPLOYMENT }}-{{ item.script_name }}
mode=0755 owner=root group=root
mode=0755 owner=root group=root
when
:
COMMON_MYSQL_READ_ONLY_PASS is defined and item.depends_on
tags
:
-
scripts
with_items
:
with_items
:
-
db_host
:
"
{{
EDXAPP_MYSQL_REPLICA_HOST
}}"
-
db_host
:
"
{{
EDXAPP_MYSQL_REPLICA_HOST
}}"
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
depends_on
:
True
tags
:
-
scripts
-
name
:
install xqueue 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
:
"
{{
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_REPLICA_HOST is defined
depends_on
:
"
{{
XQUEUE_MYSQL_REPLICA_HOST
|
default(None)
}}"
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_host
:
"
{{
ANALYTICS_API_REPORTS_REPLICA_DB_HOST
}}"
db_name
:
"
{{
ANALYTICS_API_REPORTS_DB_NAME
}}"
db_name
:
"
{{
ANALYTICS_API_REPORTS_DB_NAME
}}"
script_name
:
analytics-mysql.sh
script_name
:
analytics-mysql.sh
when
:
COMMON_MYSQL_READ_ONLY_PASS is defined and ANALYTICS_API_REPORTS_REPLICA_DB_HOST is defined
depends_on
:
"
{{
ANALYTICS_API_REPORTS_REPLICA_DB_HOST
|
default(None)
}}"
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_host
:
"
{{
ECOMMERCE_REPLICA_DB_HOST
}}"
db_name
:
"
{{
ECOMMERCE_DEFAULT_DB_NAME
}}"
db_name
:
"
{{
ECOMMERCE_DEFAULT_DB_NAME
}}"
script_name
:
ecommerce-mysql.sh
script_name
:
ecommerce-mysql.sh
when
:
COMMON_MYSQL_READ_ONLY_PASS is defined and ECOMMERCE_REPLICA_DB_HOST is defined
depends_on
:
"
{{
ECOMMERCE_REPLICA_DB_HOST
|
default(None)
}}"
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
...
...
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