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
a514fb9c
Commit
a514fb9c
authored
Feb 22, 2016
by
Kevin Falcone
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #2793 from edx/jibsheet/remove-more-syncdb
Remove almost all references to syncdb
🔥
🔥
🔥
parents
ad9f8c12
d7d7839e
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
2 additions
and
22 deletions
+2
-22
playbooks/edx-east/ora2.yml
+1
-1
playbooks/roles/edxapp/defaults/main.yml
+0
-3
playbooks/roles/edxapp/tasks/deploy.yml
+0
-11
playbooks/roles/edxapp/tasks/service_variant_config.yml
+1
-1
playbooks/roles/edxapp/templates/edx/bin/edxapp-syncdb-cms.j2
+0
-3
playbooks/roles/edxapp/templates/edx/bin/edxapp-syncdb-lms.j2
+0
-3
No files found.
playbooks/edx-east/ora2.yml
View file @
a514fb9c
...
...
@@ -32,7 +32,7 @@
tags
:
-
deploy
-
name
:
syncdb and
migrate
-
name
:
migrate
shell
:
>
{{ edxapp_venv_dir }}/bin/python manage.py lms migrate --settings=aws
chdir={{ edxapp_code_dir }}
...
...
playbooks/roles/edxapp/defaults/main.yml
View file @
a514fb9c
...
...
@@ -315,8 +315,6 @@ EDXAPP_AUTOMATOR_AUTHORIZED_KEYS: []
EDXAPP_AUTOMATOR_SUDO_CMDS
:
-
"
ALL=({{
common_web_user
}})
NOPASSWD:SETENV:{{
COMMON_BIN_DIR
}}/python.edxapp
{{
COMMON_BIN_DIR
}}/manage.edxapp
lms
migrate
*"
-
"
ALL=({{
common_web_user
}})
NOPASSWD:SETENV:{{
COMMON_BIN_DIR
}}/python.edxapp
{{
COMMON_BIN_DIR
}}/manage.edxapp
cms
migrate
*"
-
"
ALL=({{
common_web_user
}})
NOPASSWD:SETENV:{{
COMMON_BIN_DIR
}}/python.edxapp
{{
COMMON_BIN_DIR
}}/manage.edxapp
lms
syncdb
*"
-
"
ALL=({{
common_web_user
}})
NOPASSWD:SETENV:{{
COMMON_BIN_DIR
}}/python.edxapp
{{
COMMON_BIN_DIR
}}/manage.edxapp
cms
syncdb
*"
-
"
ALL=({{
common_web_user
}})
NOPASSWD:SETENV:{{
COMMON_BIN_DIR
}}/python.edxapp
{{
COMMON_BIN_DIR
}}/manage.edxapp
lms
seed_permissions_roles
*"
-
"
ALL=({{
common_web_user
}})
NOPASSWD:SETENV:{{
COMMON_BIN_DIR
}}/python.edxapp
{{
COMMON_BIN_DIR
}}/manage.edxapp
lms
set_staff
*"
-
"
ALL=({{
common_web_user
}})
NOPASSWD:SETENV:{{
COMMON_BIN_DIR
}}/python.edxapp
{{
COMMON_BIN_DIR
}}/manage.edxapp
lms
transfer_students
*"
...
...
@@ -600,7 +598,6 @@ edxapp_aa_command: "{% if EDXAPP_SANDBOX_ENFORCE %}aa-enforce{% else %}aa-compla
edxapp_helper_scripts
:
-
edxapp-migrate
-
edxapp-runserver
-
edxapp-syncdb
-
edxapp-update-assets
-
edxapp-shell
...
...
playbooks/roles/edxapp/tasks/deploy.yml
View file @
a514fb9c
...
...
@@ -340,17 +340,6 @@
-
install
-
install:code
# https://code.launchpad.net/~wligtenberg/django-openid-auth/mysql_fix/+merge/22726
# This is necessary for when syncdb is run and the django_openid_auth module is installed,
# not sure if this fix will ever get merged
-
name
:
openid workaround
shell
:
sed -i -e 's/claimed_id = models.TextField(max_length=2047, unique=True/claimed_id = models.TextField(max_length=2047/' {{ edxapp_venv_dir }}/lib/python2.7/site-packages/django_openid_auth/models.py
when
:
openid_workaround is defined
sudo_user
:
"
{{
edxapp_user
}}"
tags
:
-
install
-
install:code
# creates the supervisor jobs for the
# service variants configured, runs
# gather_assets and db migrations
...
...
playbooks/roles/edxapp/tasks/service_variant_config.yml
View file @
a514fb9c
...
...
@@ -137,7 +137,7 @@
-
install
-
install:configuration
#
Syncdb with
migrate when the migrate user is overridden in extra vars
# migrate when the migrate user is overridden in extra vars
-
name
:
migrate
command
:
"
{{
COMMON_BIN_DIR
}}/edxapp-migrate-{{
item
}}"
when
:
migrate_db is defined and migrate_db|lower == "yes" and COMMON_MYSQL_MIGRATE_PASS and item != "lms-preview"
...
...
playbooks/roles/edxapp/templates/edx/bin/edxapp-syncdb-cms.j2
deleted
100644 → 0
View file @
ad9f8c12
{% include "edxapp_common.j2" %}
sudo -E -u {{ edxapp_user }} env "PATH=$PATH" {{ edxapp_venv_bin}}/python manage.py cms syncdb --migrate --noinput --settings $EDX_PLATFORM_SETTINGS
playbooks/roles/edxapp/templates/edx/bin/edxapp-syncdb-lms.j2
deleted
100644 → 0
View file @
ad9f8c12
{% include "edxapp_common.j2" %}
sudo -E -u {{ edxapp_user }} env "PATH=$PATH" {{ edxapp_venv_bin}}/python manage.py lms syncdb --migrate --noinput --settings $EDX_PLATFORM_SETTINGS
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