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
54794c11
Commit
54794c11
authored
Feb 08, 2017
by
Robert Raposa
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Initialize elasticsearch for forums.
parent
3527e8f1
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 @
54794c11
...
...
@@ -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
:
...
...
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