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
2285c7f5
Commit
2285c7f5
authored
Jun 06, 2014
by
e0d
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Adding a handler, var use improvements
parent
efdfd7f7
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
13 additions
and
11 deletions
+13
-11
playbooks/roles/xqwatcher/defaults/main.yml
+0
-5
playbooks/roles/xqwatcher/handlers/main.yml
+7
-0
playbooks/roles/xqwatcher/tasks/deploy_watcher.yml
+4
-3
playbooks/roles/xqwatcher/templates/edx/app/supervisor/conf.d/xqwatcher.conf.j2
+2
-3
No files found.
playbooks/roles/xqwatcher/defaults/main.yml
View file @
2285c7f5
...
...
@@ -102,9 +102,5 @@ xqwatcher_supervisor_available_dir: "{{ xqwatcher_supervisor_app_dir }}/conf.ava
xqwatcher_debian_pkgs
:
-
apparmor-utils
# for graders using numpy
-
gfortran
-
libatlas3gf-base
-
liblapack-dev
xqwatcher_redhat_pkgs
:
[]
\ No newline at end of file
playbooks/roles/xqwatcher/handlers/main.yml
View file @
2285c7f5
...
...
@@ -14,3 +14,10 @@
# Overview:
#
#
-
name
:
restart xqwatcher
supervisorctl_local
:
>
state=restarted
supervisorctl_path={{ xqwatcher_supervisor_ctl }}
config={{ xqwatcher_supervisor_app_dir }}/supervisord.conf
name={{ xqwatcher_service_name }}
when
:
not disable_edx_services
playbooks/roles/xqwatcher/tasks/deploy_watcher.yml
View file @
2285c7f5
...
...
@@ -37,5 +37,6 @@
when
:
not disable_edx_services
-
name
:
update supervisor configuration
shell
:
"
{{
xqwatcher_supervisor_ctl
}}
-c
/edx/app/xqwatcher/supervisor/supervisord.conf
update"
when
:
not disable_edx_services
\ No newline at end of file
shell
:
"
{{
xqwatcher_supervisor_ctl
}}
-c
{{
xqwatcher_supervisor_app_dir
}}/supervisord.conf
update"
when
:
not disable_edx_services
notify
:
restart xqwatcher
\ No newline at end of file
playbooks/roles/xqwatcher/templates/edx/app/supervisor/conf.d/xqwatcher.conf.j2
View file @
2285c7f5
...
...
@@ -7,14 +7,13 @@
{% set executable = xqwatcher_venv_dir + '/bin/python' %}
{% endif %}
[program:
xqwatcher
]
[program:
{{ xqwatcher_service_name }}
]
command={{ executable }} -m {{ xqwatcher_module }} -d {{ xqwatcher_conf_dir }}
process_name=%(program_name)s
user={{ xqwatcher_user }}
directory={{ xqwatcher_code_dir }}
stdout_logfile={{ xqwatcher_supervisor_log_dir }}/%(program_name)-stdout.log
stderr_logfile={{ xqwatcher_supervisor_log_dir }}/%(program_name)-stderr.log
environment={% if COMMON_ENABLE_NEWRELIC %}NEW_RELIC_APP_NAME={{ XQWATCHER_NEWRELIC_APPNAME }},NEW_RELIC_LICENSE_KEY={{ COMMON_NEWRELIC_LICENSE }}{% endif %}
environment={% if COMMON_ENABLE_NEWRELIC %}NEW_RELIC_APP_NAME={{ XQWATCHER_NEWRELIC_APPNAME }},NEW_RELIC_LICENSE_KEY={{ COMMON_NEWRELIC_LICENSE }},{% endif -%}
killasgroup=true
stopasgroup=true
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