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
021cea1c
Commit
021cea1c
authored
Mar 10, 2014
by
Carson Gee
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added option to specify migration user and changed to admin user and password vars
parent
b03b16be
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
1 deletions
+6
-1
playbooks/roles/edxapp/defaults/main.yml
+1
-0
playbooks/roles/edxapp/tasks/service_variant_config.yml
+5
-1
No files found.
playbooks/roles/edxapp/defaults/main.yml
View file @
021cea1c
...
...
@@ -31,6 +31,7 @@ EDXAPP_MONGO_DB_NAME: 'edxapp'
EDXAPP_MYSQL_DB_NAME
:
'
edxapp'
EDXAPP_MYSQL_USER
:
'
edxapp001'
EDXAPP_MYSQL_USER_ADMIN
:
'
root'
EDXAPP_MYSQL_PASSWORD
:
'
password'
EDXAPP_MYSQL_PASSWORD_READ_ONLY
:
'
password'
EDXAPP_MYSQL_PASSWORD_ADMIN
:
'
password'
...
...
playbooks/roles/edxapp/tasks/service_variant_config.yml
View file @
021cea1c
...
...
@@ -68,7 +68,8 @@
{{ edxapp_venv_bin}}/python manage.py lms syncdb --migrate --noinput --settings=aws_migrate
when
:
fake_migrations is not defined and migrate_db is defined and migrate_db|lower == "yes"
environment
:
DB_MIGRATION_PASS
:
"
{{
EDXAPP_MYSQL_PASSWORD
}}"
DB_MIGRATION_USER
:
"
{{
EDXAPP_MYSQL_USER_ADMIN
}}"
DB_MIGRATION_PASS
:
"
{{
EDXAPP_MYSQL_PASSWORD_ADMIN
}}"
sudo_user
:
"
{{
edxapp_user
}}"
notify
:
-
"
restart
edxapp"
...
...
@@ -97,6 +98,9 @@
chdir={{ edxapp_code_dir }}
{{ edxapp_venv_bin}}/python manage.py lms migrate --noinput --settings=aws_migrate
when
:
fake_migrations is not defined and migrate_only is defined and migrate_only|lower == "yes"
environment
:
DB_MIGRATION_USER
:
"
{{
EDXAPP_MYSQL_USER_ADMIN
}}"
DB_MIGRATION_PASS
:
"
{{
EDXAPP_MYSQL_PASSWORD_ADMIN
}}"
sudo_user
:
"
{{
edxapp_user
}}"
notify
:
-
"
restart
edxapp"
...
...
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