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
82e66a6c
Commit
82e66a6c
authored
Jun 28, 2013
by
Jason Bau
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #136 from edx/jbau/fix/migration_flag
Jbau/fix/migration flag
parents
cd1056eb
5ae96d19
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
14 additions
and
5 deletions
+14
-5
playbooks/edx-west/edxapp_prod.yml
+9
-0
playbooks/edx-west/ora_prod.yml
+2
-2
playbooks/roles/edxapp/tasks/deploy.yml
+1
-1
playbooks/roles/ora/tasks/deploy.yml
+1
-1
playbooks/roles/xqueue/tasks/deploy.yml
+1
-1
No files found.
playbooks/edx-west/edxapp_prod.yml
View file @
82e66a6c
...
...
@@ -10,6 +10,15 @@
## you can also do security group, but don't do that
#- hosts: security_group_edx-prod-EdxappServerSecurityGroup-NSKCQTMZIPQB
sudo
:
True
vars_prompt
:
-
name
:
"
lms_version"
prompt
:
"
Enter
the
edx-platform
version:
branch,
hash,
tag,
or
'HEAD'
(default
is
edx-west/release)"
default
:
"
edx-west/release"
private
:
no
-
name
:
"
migrate_db"
prompt
:
"
Should
this
playbook
run
database
migrations?
(<Return>
for
false,
anything
else
for
true)"
default
:
false
private
:
no
vars
:
secure_dir
:
'
../../../configuration-secure/ansible'
# this indicates the path to site-specific (with precedence)
...
...
playbooks/edx-west/ora_prod.yml
View file @
82e66a6c
# this gets all running prod webservers
-
hosts
:
tag_environment_prod:&tag_function_ora
#
- hosts: tag_environment_prod:&tag_function_ora
# or we can get subsets of them by name
#- hosts: ~tag_Name_xserver(1|2
)_prod
-
hosts
:
~tag_Name_ora(10|11
)_prod
#- hosts: security_group_edx-prod-EdxappServerSecurityGroup-NSKCQTMZIPQB
sudo
:
True
vars
:
...
...
playbooks/roles/edxapp/tasks/deploy.yml
View file @
82e66a6c
...
...
@@ -261,7 +261,7 @@
-
name
:
syncdb and migrate
shell
:
sudo -u www-data SERVICE_VARIANT=lms /opt/edx/bin/django-admin.py syncdb --migrate --noinput --settings=lms.envs.aws --pythonpath=/opt/wwc/edx-platform
when
:
migrate_db
is defined
when
:
migrate_db
tags
:
-
deploy
-
lms
...
...
playbooks/roles/ora/tasks/deploy.yml
View file @
82e66a6c
...
...
@@ -93,7 +93,7 @@
-
name
:
syncdb and migrate
shell
:
sudo -u www-data {{venv_dir}}/bin/django-admin.py syncdb --migrate --noinput --settings=edx_ora.aws --pythonpath={{ora_code_dir}}
when
:
migrate_db
is defined
when
:
migrate_db
tags
:
-
ora
-
syncdb
...
...
playbooks/roles/xqueue/tasks/deploy.yml
View file @
82e66a6c
...
...
@@ -47,7 +47,7 @@
-
name
:
syncdb and migrate
shell
:
sudo -u www-data /opt/edx/bin/django-admin.py syncdb --migrate --noinput --settings=xqueue.aws_settings --pythonpath=/opt/wwc/xqueue
when
:
migrate_db
is defined
when
:
migrate_db
tags
:
-
xqueue
-
syncdb
...
...
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