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
OpenEdx
configuration
Commits
efb718aa
Commit
efb718aa
authored
Feb 12, 2015
by
Max Rothman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remove handlers
parent
62b6dd00
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
15 additions
and
30 deletions
+15
-30
playbooks/roles/xqwatcher/defaults/main.yml
+5
-5
playbooks/roles/xqwatcher/handlers/main.yml
+0
-23
playbooks/roles/xqwatcher/tasks/deploy_watcher.yml
+10
-2
No files found.
playbooks/roles/xqwatcher/defaults/main.yml
View file @
efb718aa
...
@@ -72,20 +72,20 @@ XQWATCHER_PIP_EXTRA_ARGS: "-i {{ COMMON_PYPI_MIRROR_URL }}"
...
@@ -72,20 +72,20 @@ XQWATCHER_PIP_EXTRA_ARGS: "-i {{ COMMON_PYPI_MIRROR_URL }}"
# vars are namespace with the module name.
# vars are namespace with the module name.
#
#
xqwatcher_service_name
:
"
xqwatcher"
xqwatcher_service_name
:
"
xqwatcher"
xqwatcher_user
:
"
xqwatcher"
xqwatcher_user
:
"
{{
xqwatcher_service_name
}}"
xqwatcher_module
:
"
xqueue_watcher"
xqwatcher_app_dir
:
"
{{
COMMON_APP_DIR
}}/{{
xqwatcher_service_name
}}"
xqwatcher_app_dir
:
"
{{
COMMON_APP_DIR
}}/{{
xqwatcher_service_name
}}"
xqwatcher_app_data
:
"
{{
xqwatcher_app_dir
}}/data"
xqwatcher_app_data
:
"
{{
xqwatcher_app_dir
}}/data"
xqwatcher_code_dir
:
"
{{
xqwatcher_app_dir
}}/src"
xqwatcher_code_dir
:
"
{{
xqwatcher_app_dir
}}/src"
xqwatcher_conf_dir
:
"
{{
xqwatcher_app_dir
}}"
xqwatcher_conf_dir
:
"
{{
xqwatcher_app_dir
}}"
xqwatcher_requirements_file
:
"
{{
xqwatcher_code_dir
}}/requirements.txt"
xqwatcher_log_dir
:
"
{{
COMMON_LOG_DIR
}}/{{
xqwatcher_service_name
}}"
xqwatcher_module
:
"
xqueue_watcher"
#Do not reference these outside of this file
#Do not reference these outside of this file
xqwatcher_venv_base
:
"
{{
xqwatcher_app_dir
}}/venvs"
xqwatcher_venv_base
:
"
{{
xqwatcher_app_dir
}}/venvs"
xqwatcher_venv_dir
:
"
{{
xqwatcher_venv_base
}}/{{
xqwatcher_service_name
}}"
xqwatcher_venv_dir
:
"
{{
xqwatcher_venv_base
}}/{{
xqwatcher_service_name
}}"
xqwatcher_requirements_file
:
"
{{
xqwatcher_code_dir
}}/requirements.txt"
xqwatcher_log_dir
:
"
{{
COMMON_LOG_DIR
}}/{{
xqwatcher_service_name
}}"
#
#
# supervisor related config
# supervisor related config
...
...
playbooks/roles/xqwatcher/handlers/main.yml
deleted
100644 → 0
View file @
62b6dd00
---
#
# edX Configuration
#
# github: https://github.com/edx/configuration
# wiki: https://github.com/edx/configuration/wiki
# code style: https://github.com/edx/configuration/wiki/Ansible-Coding-Conventions
# license: https://github.com/edx/configuration/blob/master/LICENSE.TXT
#
#
#
# Handlers for role xqwatcher
#
# 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 @
efb718aa
...
@@ -33,4 +33,12 @@
...
@@ -33,4 +33,12 @@
-
name
:
update supervisor configuration
-
name
:
update supervisor configuration
shell
:
"
{{
xqwatcher_supervisor_ctl
}}
-c
{{
xqwatcher_supervisor_app_dir
}}/supervisord.conf
update"
shell
:
"
{{
xqwatcher_supervisor_ctl
}}
-c
{{
xqwatcher_supervisor_app_dir
}}/supervisord.conf
update"
when
:
not disable_edx_services
when
:
not disable_edx_services
notify
:
restart xqwatcher
\ No newline at end of file
-
name
:
restart xqwatcher
supervisorctl_local
:
>
state=restarted
supervisorctl_path={{ supervisor_ctl }}
config={{ supervisor_cfg }}
name={{ xqwatcher_service_name }}
when
:
not disable_edx_services
sudo_user
:
"
{{
supervisor_service_user
}}"
\ No newline at end of file
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