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
4bec098c
Commit
4bec098c
authored
8 years ago
by
Robert Raposa
Committed by
GitHub
8 years ago
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #3683 from edx/robrap/enhance-initialize
TNL-6510: Initialize elasticsearch for forums.
parents
0df26e09
54794c11
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
2 deletions
+13
-2
playbooks/roles/forum/tasks/deploy.yml
+13
-2
No files found.
playbooks/roles/forum/tasks/deploy.yml
View file @
4bec098c
...
...
@@ -26,7 +26,7 @@
tags
:
-
install
-
install:configuration
-
name
:
create the supervisor wrapper
template
:
src
:
"
{{
forum_supervisor_wrapper|basename
}}.j2"
...
...
@@ -60,6 +60,17 @@
-
install
-
install:app-requirements
-
name
:
initialize elasticsearch
command
:
"
{{
forum_code_dir
}}/bin/rake
search:initialize"
args
:
chdir
:
"
{{
forum_code_dir
}}"
become_user
:
"
{{
forum_user
}}"
environment
:
"
{{
forum_environment
}}"
when
:
migrate_db is defined and migrate_db|lower == "yes"
tags
:
-
migrate
-
migrate:db
# call supervisorctl update. this reloads
# the supervisorctl config and restarts
# the services if any of the configurations
...
...
@@ -90,7 +101,7 @@
-
include
:
tag_ec2.yml
when
:
COMMON_TAG_EC2_INSTANCE
tags
:
tags
:
-
deploy
-
set_fact
:
...
...
This diff is collapsed.
Click to expand it.
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