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
772f740f
Commit
772f740f
authored
Feb 01, 2016
by
Ned Batchelder
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Convert the 'restart xqueue' handler into a normal task
parent
c024c39c
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
33 deletions
+10
-33
playbooks/roles/xqueue/handlers/main.yml
+0
-10
playbooks/roles/xqueue/tasks/deploy.yml
+10
-17
playbooks/roles/xqueue/tasks/main.yml
+0
-6
No files found.
playbooks/roles/xqueue/handlers/main.yml
deleted
100644 → 0
View file @
c024c39c
-
name
:
restart xqueue
supervisorctl
:
>
name={{ item }}
supervisorctl_path={{ supervisor_ctl }}
config={{ supervisor_cfg }}
state=restarted
when
:
xqueue_installed is defined and not disable_edx_services
with_items
:
-
xqueue
-
xqueue_consumer
playbooks/roles/xqueue/tasks/deploy.yml
View file @
772f740f
...
...
@@ -23,8 +23,6 @@
template
:
>
src=xqueue_gunicorn.py.j2 dest={{ xqueue_app_dir }}/xqueue_gunicorn.py
sudo_user
:
"
{{
xqueue_user
}}"
notify
:
-
restart xqueue
tags
:
-
install
-
install:configuration
...
...
@@ -32,8 +30,6 @@
-
name
:
create xqueue application config
template
:
src=xqueue.env.json.j2 dest={{ xqueue_app_dir }}/xqueue.env.json mode=0644
sudo_user
:
"
{{
xqueue_user
}}"
notify
:
-
restart xqueue
tags
:
-
install
-
install:configuration
...
...
@@ -41,8 +37,6 @@
-
name
:
create xqueue auth file
template
:
src=xqueue.auth.json.j2 dest={{ xqueue_app_dir }}/xqueue.auth.json mode=0644
sudo_user
:
"
{{
xqueue_user
}}"
notify
:
-
restart xqueue
tags
:
-
install
-
install:configuration
...
...
@@ -54,8 +48,6 @@
accept_hostkey=yes
sudo_user
:
"
{{
xqueue_user
}}"
register
:
xqueue_checkout
notify
:
-
restart xqueue
tags
:
-
install
-
install:code
...
...
@@ -67,8 +59,6 @@
requirements="{{ xqueue_pre_requirements_file }}" virtualenv="{{ xqueue_venv_dir }}" state=present
extra_args="-i {{ COMMON_PYPI_MIRROR_URL }} --exists-action w"
sudo_user
:
"
{{
xqueue_user
}}"
notify
:
-
restart xqueue
tags
:
-
install
-
install:application-requirements
...
...
@@ -79,8 +69,6 @@
requirements="{{ xqueue_post_requirements_file }}" virtualenv="{{ xqueue_venv_dir }}" state=present
extra_args="-i {{ COMMON_PYPI_MIRROR_URL }} --exists-action w"
sudo_user
:
"
{{
xqueue_user
}}"
notify
:
-
restart xqueue
tags
:
-
install
-
install:application-requirements
...
...
@@ -95,8 +83,6 @@
DB_MIGRATION_USER
:
"
{{
COMMON_MYSQL_MIGRATE_USER
}}"
DB_MIGRATION_PASS
:
"
{{
COMMON_MYSQL_MIGRATE_PASS
}}"
when
:
migrate_db is defined and migrate_db|lower == "yes" and COMMON_MYSQL_MIGRATE_PASS
notify
:
-
restart xqueue
tags
:
-
migrate
-
migrate:db
...
...
@@ -105,8 +91,6 @@
shell
:
>
SERVICE_VARIANT=xqueue {{ xqueue_venv_bin }}/django-admin.py update_users --settings=xqueue.aws_settings --pythonpath={{ xqueue_code_dir }}
sudo_user
:
"
{{
xqueue_user
}}"
notify
:
-
restart xqueue
tags
:
-
manage
-
manage:app-users
...
...
@@ -148,4 +132,13 @@
-
install
-
install:app-requirements
-
set_fact
:
xqueue_installed=true
-
name
:
restart xqueue
supervisorctl
:
>
name={{ item }}
supervisorctl_path={{ supervisor_ctl }}
config={{ supervisor_cfg }}
state=restarted
when
:
not disable_edx_services
with_items
:
-
xqueue
-
xqueue_consumer
playbooks/roles/xqueue/tasks/main.yml
View file @
772f740f
...
...
@@ -12,8 +12,6 @@
home="{{ xqueue_app_dir }}"
createhome=no
shell=/bin/false
notify
:
-
restart xqueue
tags
:
-
install
-
install:base
...
...
@@ -24,8 +22,6 @@
state=directory
owner="{{ xqueue_user }}"
group="{{ common_web_group }}"
notify
:
-
restart xqueue
with_items
:
-
"
{{
xqueue_app_dir
}}"
-
"
{{
xqueue_venvs_dir
}}"
...
...
@@ -35,8 +31,6 @@
-
name
:
install a bunch of system packages on which xqueue relies
apt
:
pkg={{','.join(xqueue_debian_pkgs)}} state=present
notify
:
-
restart xqueue
tags
:
-
install
-
install:system-requirements
...
...
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