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
4e4c2fa3
Unverified
Commit
4e4c2fa3
authored
Jan 05, 2018
by
Nadeem Shahzad
Committed by
GitHub
Jan 05, 2018
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #4243 from open-craft/kshitij/run_migrations_once_2
Restrict migration tasks to single host.
parents
ba692cbf
b614377d
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
10 additions
and
0 deletions
+10
-0
playbooks/roles/analytics_api/tasks/main.yml
+1
-0
playbooks/roles/ansible-role-django-ida/templates/tasks/main.yml.j2
+1
-0
playbooks/roles/edx_django_service/tasks/main.yml
+2
-0
playbooks/roles/edx_notes_api/tasks/main.yml
+1
-0
playbooks/roles/edxapp/tasks/service_variant_config.yml
+1
-0
playbooks/roles/forum/tasks/deploy.yml
+2
-0
playbooks/roles/insights/tasks/main.yml
+1
-0
playbooks/roles/xqueue/tasks/deploy.yml
+1
-0
No files found.
playbooks/roles/analytics_api/tasks/main.yml
View file @
4e4c2fa3
...
...
@@ -70,6 +70,7 @@
become_user
:
"
{{
analytics_api_user
}}"
environment
:
"
{{
analytics_api_environment
}}"
when
:
migrate_db is defined and migrate_db|lower == "yes"
run_once
:
yes
tags
:
-
migrate
-
migrate:db
...
...
playbooks/roles/ansible-role-django-ida/templates/tasks/main.yml.j2
View file @
4e4c2fa3
...
...
@@ -60,6 +60,7 @@
sudo_user: "{{ '{{' }} {{ role_name }}_user }}"
environment: "{{ '{{' }} {{ role_name }}_migration_environment }}"
when: migrate_db is defined and migrate_db|lower == "yes"
run_once: yes
tags:
- migrate
- migrate:db
...
...
playbooks/roles/edx_django_service/tasks/main.yml
View file @
4e4c2fa3
...
...
@@ -111,6 +111,7 @@
become_user
:
"
{{
edx_django_service_user
}}"
environment
:
"
{{
edx_django_service_migration_environment
}}"
when
:
migrate_db is defined and migrate_db|lower == "yes"
run_once
:
yes
tags
:
-
migrate
-
migrate:db
...
...
@@ -123,6 +124,7 @@
environment
:
"
{{
edx_django_service_environment
}}"
with_items
:
'
{{
edx_django_service_post_migrate_commands
}}'
when
:
migrate_db is defined and migrate_db|lower == "yes" and item.when | bool
run_once
:
yes
tags
:
-
migrate
-
migrate:db
...
...
playbooks/roles/edx_notes_api/tasks/main.yml
View file @
4e4c2fa3
...
...
@@ -67,6 +67,7 @@
environment
:
EDXNOTES_CONFIG_ROOT
:
"
{{
COMMON_CFG_DIR
}}"
when
:
migrate_db is defined and migrate_db|lower == "yes"
run_once
:
yes
tags
:
-
migrate
-
migrate:db
...
...
playbooks/roles/edxapp/tasks/service_variant_config.yml
View file @
4e4c2fa3
...
...
@@ -129,6 +129,7 @@
-
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"
run_once
:
yes
environment
:
DB_MIGRATION_USER
:
"
{{
COMMON_MYSQL_MIGRATE_USER
}}"
DB_MIGRATION_PASS
:
"
{{
COMMON_MYSQL_MIGRATE_PASS
}}"
...
...
playbooks/roles/forum/tasks/deploy.yml
View file @
4e4c2fa3
...
...
@@ -67,6 +67,7 @@
become_user
:
"
{{
forum_user
}}"
environment
:
"
{{
forum_base_env
}}"
when
:
migrate_db is defined and migrate_db|lower == "yes"
run_once
:
yes
tags
:
-
migrate
-
migrate:db
...
...
@@ -78,6 +79,7 @@
become_user
:
"
{{
forum_user
}}"
environment
:
"
{{
forum_base_env
}}"
when
:
migrate_db is defined and migrate_db|lower == "yes" and FORUM_REBUILD_INDEX|bool
run_once
:
yes
tags
:
-
migrate
-
migrate:db
...
...
playbooks/roles/insights/tasks/main.yml
View file @
4e4c2fa3
...
...
@@ -70,6 +70,7 @@
become_user
:
"
{{
insights_user
}}"
environment
:
"
{{
insights_environment
}}"
when
:
migrate_db is defined and migrate_db|lower == "yes"
run_once
:
yes
tags
:
-
migrate
-
migrate:db
...
...
playbooks/roles/xqueue/tasks/deploy.yml
View file @
4e4c2fa3
...
...
@@ -94,6 +94,7 @@
DB_MIGRATION_USER
:
"
{{
COMMON_MYSQL_MIGRATE_USER
}}"
DB_MIGRATION_PASS
:
"
{{
COMMON_MYSQL_MIGRATE_PASS
}}"
when
:
migrate_db is defined and migrate_db|lower == "yes" and COMMON_MYSQL_MIGRATE_PASS
run_once
:
yes
tags
:
-
migrate
-
migrate:db
...
...
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