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
4d8db75a
Commit
4d8db75a
authored
Jun 07, 2014
by
e0d
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Play to create the analytics db and users
parent
e41be5ff
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
33 additions
and
0 deletions
+33
-0
playbooks/edx-east/create_analytics_reports_dbs.yml
+33
-0
No files found.
playbooks/edx-east/create_analytics_reports_dbs.yml
0 → 100644
View file @
4d8db75a
-
name
:
Create analtyics reports db
hosts
:
all
connection
:
local
gather_facts
:
False
tasks
:
# Install required library
#- name: install python mysqldb module
# apt: pkg={{item}} install_recommends=no state=present update_cache=yes
# sudo: yes
# with_items:
# - python-mysqldb
-
name
:
create mysql databases for the analytics report API
mysql_db
:
>
db={{ item.key }}
state={{ item.value.state }}
encoding={{ item.value.encoding }}
login_host={{ item.value.login_host }}
login_user={{ item.value.login_user }}
login_password={{ item.value.login_password }}
with_dict
:
databases
-
name
:
create mysql users and assign privileges
mysql_user
:
>
name="{{ item.key }}"
priv="{{ '/'.join(item.value.privileges) }}"
password="{{ item.value.password }}"
host={{ item.value.host }}
login_host={{ item.value.login_host }}
login_user={{ item.value.login_user }}
login_password={{ item.value.login_password }}
append_privs=yes
with_dict
:
database_users
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