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
93d4bffa
Commit
93d4bffa
authored
Jul 18, 2013
by
Jason Bau
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make the condition on migrate_db a bit safer for using in var_prompt
parent
d6ec69b6
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
31 additions
and
11 deletions
+31
-11
playbooks/edx-west/edxapp_prod.yml
+3
-3
playbooks/edx-west/edxworker_prod.yml
+19
-0
playbooks/edx-west/ora_prod.yml
+2
-1
playbooks/edx_jenkins_tests.yml
+1
-1
playbooks/edx_provision_test.yml
+1
-1
playbooks/edx_sandbox.yml
+1
-1
playbooks/roles/edxapp/tasks/deploy.yml
+1
-1
playbooks/roles/ora/tasks/deploy.yml
+1
-1
playbooks/roles/xqueue/tasks/deploy.yml
+1
-1
playbooks/vagrant.yml
+1
-1
No files found.
playbooks/edx-west/edxapp_prod.yml
View file @
93d4bffa
# this gets all running prod webservers
#- hosts: tag_environment_prod:&tag_function_webserver
# or we can get subsets of them by name
-
hosts
:
~tag_Name_app(
12|22
)_prod
-
hosts
:
~tag_Name_app(
4
)_prod
#- hosts: ~tag_Name_app(11|21)_prod
## these are cold hosts:
#- hosts: ~tag_Name_app(12|22)_prod
...
...
@@ -12,8 +12,8 @@
sudo
:
True
vars_prompt
:
-
name
:
"
migrate_db"
prompt
:
"
Should
this
playbook
run
database
migrations?
(
<Return>
for
false,
anything
else
for
true
)"
default
:
false
prompt
:
"
Should
this
playbook
run
database
migrations?
(
Type
'yes'
to
run,
anything
else
to
skip
migrations
)"
default
:
"
no"
private
:
no
vars
:
secure_dir
:
'
../../../configuration-secure/ansible'
...
...
playbooks/edx-west/edxworker_prod.yml
0 → 100644
View file @
93d4bffa
# this gets all running prod webservers
-
hosts
:
tag_environment_prod:&tag_function_util
# or we can get subsets of them by name
#- hosts: ~tag_Name_util(1|2)_prod
sudo
:
True
vars
:
secure_dir
:
'
../../../configuration-secure/ansible'
# this indicates the path to site-specific (with precedence)
# things like nginx template files
local_dir
:
'
../../../configuration-secure/ansible/local'
migrate_db
:
"
no"
vars_files
:
-
"
{{
secure_dir
}}/vars/edxapp_prod_vars.yml"
-
"
{{
secure_dir
}}/vars/users.yml"
-
"
{{
secure_dir
}}/vars/edxapp_prod_users.yml"
-
"
{{
secure_dir
}}/vars/shib_prod_vars.yml"
roles
:
-
common
-
{
role
:
'
edxapp'
,
celery_worker
:
True
}
playbooks/edx-west/ora_prod.yml
View file @
93d4bffa
...
...
@@ -9,8 +9,9 @@
# this indicates the path to site-specific (with precedence)
# things like nginx template files
local_dir
:
'
../../../configuration-secure/ansible/local'
migrate_db
:
"
no"
vars_files
:
-
"
{{
secure_dir
}}/vars/
edxapp
_prod_vars.yml"
-
"
{{
secure_dir
}}/vars/
ora
_prod_vars.yml"
-
"
{{
secure_dir
}}/vars/users.yml"
-
"
{{
secure_dir
}}/vars/edxapp_prod_users.yml"
roles
:
...
...
playbooks/edx_jenkins_tests.yml
View file @
93d4bffa
...
...
@@ -3,7 +3,7 @@
sudo
:
True
gather_facts
:
True
vars
:
migrate_db
:
True
migrate_db
:
"
yes"
openid_workaround
:
True
ansible_ssh_private_key_file
:
/var/lib/jenkins/continuous-integration.pem
vars_files
:
...
...
playbooks/edx_provision_test.yml
View file @
93d4bffa
...
...
@@ -17,7 +17,7 @@
sudo
:
True
gather_facts
:
True
vars
:
migrate_db
:
True
migrate_db
:
"
yes"
openid_workaround
:
True
ansible_ssh_private_key_file
:
/var/lib/jenkins/continuous-integration.pem
vars_files
:
...
...
playbooks/edx_sandbox.yml
View file @
93d4bffa
...
...
@@ -19,7 +19,7 @@
sudo
:
True
gather_facts
:
True
vars
:
migrate_db
:
True
migrate_db
:
"
yes"
openid_workaround
:
True
roles
:
-
common
...
...
playbooks/roles/edxapp/tasks/deploy.yml
View file @
93d4bffa
...
...
@@ -189,7 +189,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 is defined
and migrate_db|lower == "yes"
tags
:
-
deploy
-
lms
...
...
playbooks/roles/ora/tasks/deploy.yml
View file @
93d4bffa
...
...
@@ -86,7 +86,7 @@
-
name
:
syncdb and migrate
shell
:
sudo -u www-data {{ora_venv_dir}}/bin/django-admin.py syncdb --migrate --noinput --settings=edx_ora.aws --pythonpath={{ora_code_dir}}
when
:
migrate_db
when
:
migrate_db
is defined and migrate_db|lower == "yes"
notify
:
-
restart edx-ora
-
restart edx-ora-celery
...
...
playbooks/roles/xqueue/tasks/deploy.yml
View file @
93d4bffa
...
...
@@ -53,7 +53,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
when
:
migrate_db
is defined and migrate_db|lower == "yes"
tags
:
-
xqueue
-
syncdb
...
...
playbooks/vagrant.yml
View file @
93d4bffa
...
...
@@ -3,7 +3,7 @@
sudo
:
True
gather_facts
:
True
vars
:
migrate_db
:
True
migrate_db
:
"
yes"
openid_workaround
:
True
vars_files
:
-
"
group_vars/all"
...
...
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