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
a90dd101
Commit
a90dd101
authored
Jan 22, 2014
by
Jason Bau
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
notifier changes
parent
a94af726
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
4 deletions
+9
-4
playbooks/edx-west/prod-app.yml
+2
-2
playbooks/roles/notifier/tasks/deploy.yml
+7
-2
No files found.
playbooks/edx-west/prod-app.yml
View file @
a90dd101
...
...
@@ -2,9 +2,9 @@
#- hosts: tag_environment_prod:&tag_function_webserver
# or we can get subsets of them by name
#- hosts: ~tag_Name_app1_prod
#
- hosts: ~tag_Name_app2_prod
-
hosts
:
~tag_Name_app2_prod
## this is the test box
-
hosts
:
~tag_Name_app4_prod
#
- hosts: ~tag_Name_app4_prod
#- hosts: ~tag_Name_app(4|1|2)_prod
## you can also do security group, but don't do that
#- hosts: security_group_edx-prod-EdxappServerSecurityGroup-NSKCQTMZIPQB
...
...
playbooks/roles/notifier/tasks/deploy.yml
View file @
a90dd101
...
...
@@ -30,9 +30,13 @@
tags
:
-
deploy
# Syncdb for whatever reason always creates the file owned by www-data:www-data, and then
# complains it can't write because it's running as notifier. So this is to touch the file into
# place with proper perms first.
-
name
:
notifier | fix permissions on notifer db file
shell
:
>
chmod 0664 {{ NOTIFIER_DB_DIR }}/*
file
:
>
path={{ NOTIFIER_DB_DIR }}/notifier.db state=touch owner={{ NOTIFIER_USER }} group={{ NOTIFIER_WEB_USER }}
mode=0664
sudo
:
true
notify
:
-
notifier | restart notifier-scheduler
...
...
@@ -45,6 +49,7 @@
cd {{ NOTIFIER_CODE_DIR }} && {{ NOTIFIER_VENV_DIR }}/bin/python manage.py syncdb
sudo
:
true
sudo_user
:
"
{{
NOTIFIER_USER
}}"
environment
:
notifier_env_vars
notify
:
-
notifier | restart notifier-scheduler
-
notifier | restart notifier-celery-workers
...
...
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