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
5d2bc290
Commit
5d2bc290
authored
Jun 16, 2016
by
Feanil Patel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Convert to the yaml syntax for ansible tasks.
parent
753be18d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
24 additions
and
24 deletions
+24
-24
playbooks/roles/edxlocal/tasks/main.yml
+24
-24
No files found.
playbooks/roles/edxlocal/tasks/main.yml
View file @
5d2bc290
...
...
@@ -35,42 +35,42 @@
with_items
:
"
{{
edxlocal_databases
}}"
-
name
:
create api user for the analytics api
mysql_user
:
>
name
=api001
password
=
"{{ ANALYTICS_API_DATABASES.default.PASSWORD }}"
priv
=
'{{ ANALYTICS_API_DATABASES.default.NAME }}.*:ALL/reports.*:SELECT'
mysql_user
:
name
:
"
api001"
password
:
"
{{
ANALYTICS_API_DATABASES.default.PASSWORD
}}"
priv
:
'
{{
ANALYTICS_API_DATABASES.default.NAME
}}.*:ALL/reports.*:SELECT'
when
:
ANALYTICS_API_SERVICE_CONFIG is defined
-
name
:
create read-only reports user for the analytics-api
mysql_user
:
>
name
=
reports001
password
=
"{{ ANALYTICS_API_DATABASES.reports.PASSWORD }}"
priv
=
'{{ ANALYTICS_API_DATABASES.reports.NAME }}.*:SELECT'
mysql_user
:
name
:
reports001
password
:
"
{{
ANALYTICS_API_DATABASES.reports.PASSWORD
}}"
priv
:
'
{{
ANALYTICS_API_DATABASES.reports.NAME
}}.*:SELECT'
when
:
ANALYTICS_API_SERVICE_CONFIG is defined
-
name
:
create a database for the hive metastore
mysql_db
:
>
db
={{ HIVE_METASTORE_DATABASE.name }}
state
=present
encoding
=latin1
mysql_db
:
db
:
"
{{
HIVE_METASTORE_DATABASE.name
}}"
state
:
"
present"
encoding
:
"
latin1"
when
:
HIVE_METASTORE_DATABASE is defined
-
name
:
setup the edx-notes-api db user
mysql_user
:
>
name
={{ EDX_NOTES_API_MYSQL_DB_USER }}
password
={{ EDX_NOTES_API_MYSQL_DB_PASS }}
priv
='{{ EDX_NOTES_API_MYSQL_DB_NAME }}.*:SELECT,INSERT,UPDATE,DELETE'
mysql_user
:
name
:
"
{{
EDX_NOTES_API_MYSQL_DB_USER
}}"
password
:
"
{{
EDX_NOTES_API_MYSQL_DB_PASS
}}"
priv
:
"
{{
EDX_NOTES_API_MYSQL_DB_NAME
}}.*:SELECT,INSERT,UPDATE,DELETE"
when
:
EDX_NOTES_API_MYSQL_DB_USER is defined
-
name
:
setup the read-only db user
mysql_user
:
>
name
={{ COMMON_MYSQL_READ_ONLY_USER }}
password
={{ COMMON_MYSQL_READ_ONLY_PASS }}
priv
='*.*:ALL'
mysql_user
:
name
:
"
{{
COMMON_MYSQL_READ_ONLY_USER
}}"
password
:
"
{{
COMMON_MYSQL_READ_ONLY_PASS
}}"
priv
:
"
*.*:ALL"
-
name
:
setup the admin db user
mysql_user
:
>
name
={{ COMMON_MYSQL_ADMIN_USER }}
password
={{ COMMON_MYSQL_ADMIN_PASS }}
priv
='*.*:CREATE USER'
mysql_user
:
name
:
"
{{
COMMON_MYSQL_ADMIN_USER
}}"
password
:
"
{{
COMMON_MYSQL_ADMIN_PASS
}}"
priv
:
"
*.*:CREATE
USER"
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