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
b2cc5583
Commit
b2cc5583
authored
Jul 12, 2013
by
Feanil Patel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add restart notifications for tasks that could affect the service.
parent
dbcb9f03
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
2 deletions
+17
-2
playbooks/roles/xqueue/handlers/main.yml
+3
-0
playbooks/roles/xqueue/tasks/main.yml
+14
-2
No files found.
playbooks/roles/xqueue/handlers/main.yml
View file @
b2cc5583
...
...
@@ -15,3 +15,6 @@
tags
:
-
xqueue
-
deploy
-
name
:
restart xqueue consumer
service
:
name=xqueue_consumer state=restarted
playbooks/roles/xqueue/tasks/main.yml
View file @
b2cc5583
...
...
@@ -24,28 +24,40 @@
-
xqueue
-
name
:
install a bunch of system packages on which LMS and CMS rely
apt
:
pkg={{item}} state=present
with_items
:
xqueue_debian_pkgs
apt
:
pkg={{','.join(xqueue_debian_pkgs}} state=present
notify
:
-
restart xqueue
-
restart xqueue consumer
tags
:
-
xqueue
-
name
:
create xqueue application config
template
:
src=xqueue.env.json.j2 dest=$app_base_dir/env.json mode=0640 owner=www-data group=adm
notify
:
-
restart xqueue
-
restart xqueue consumer
tags
:
-
xqueue
-
name
:
create xqueue auth file
template
:
src=xqueue.auth.json.j2 dest=$app_base_dir/auth.json mode=0640 owner=www-data group=adm
notify
:
-
restart xqueue
-
restart xqueue consumer
tags
:
-
xqueue
-
name
:
creating xqueue upstart script
template
:
src=xqueue.conf.j2 dest=/etc/init/xqueue.conf mode=0640 owner=root group=adm
notify
:
-
restart xqueue
tags
:
-
xqueue
-
name
:
create xqueue consumer upstart script
template
:
src=xqueue_consumer.conf.j2 dest=/etc/init/xqueue_consumer.conf mode=0640 owner=root group=adm
notify
:
-
restart xqueue consumer
tags
:
-
xqueue
...
...
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