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
1877564b
Commit
1877564b
authored
7 years ago
by
Ibrahim
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
change discovery env
parent
bd56a53a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
4 deletions
+5
-4
playbooks/roles/whitelabel/defaults/main.yml
+1
-1
playbooks/roles/whitelabel/tasks/main.yml
+4
-3
No files found.
playbooks/roles/whitelabel/defaults/main.yml
View file @
1877564b
WHITELABEL_MYSQL_COMMAND
:
WHITELABEL_MYSQL_COMMAND
S
:
-
"
CREATE
SCHEMA
discovery;"
-
"
CREATE
SCHEMA
discovery;"
-
"
CREATE
USER
'discov001'@'localhost'
IDENTIFIED
BY
'password';"
-
"
CREATE
USER
'discov001'@'localhost'
IDENTIFIED
BY
'password';"
-
"
GRANT
ALL
PRIVILEGES
ON
discovery.*
TO
'discov001'@'localhost';"
-
"
GRANT
ALL
PRIVILEGES
ON
discovery.*
TO
'discov001'@'localhost';"
...
...
This diff is collapsed.
Click to expand it.
playbooks/roles/whitelabel/tasks/main.yml
View file @
1877564b
...
@@ -31,11 +31,12 @@
...
@@ -31,11 +31,12 @@
-
name
:
Setup MySql Database
-
name
:
Setup MySql Database
shell
:
'
mysql
-u
root
-e
"{{
item
}}"'
shell
:
'
mysql
-u
root
-e
"{{
item
}}"'
with_items
:
"
{{
WHITELABEL_MYSQL_COMMAND
}}"
with_items
:
"
{{
WHITELABEL_MYSQL_COMMAND
S
}}"
-
name
:
Run Discovery migrations
-
name
:
Run Discovery migrations
shell
:
"
./manage.py
migrate"
shell
:
"
source
{{
discovery_home
}}/discovery_env
&&
make
migrate"
args
:
args
:
chdir
:
"
{{
discovery_code_dir
}}"
chdir
:
"
{{
discovery_code_dir
}}"
become_user
:
"
{{
discovery_user
}}"
become_user
:
"
{{
discovery_user
}}"
environment
:
"
{{
discovery_environment
}}"
# environment: "{{ discovery_environment }}"
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