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
742fed85
Commit
742fed85
authored
Sep 09, 2014
by
Fred Smith
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
theme support for notifier service
parent
1b0f98ed
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
29 additions
and
0 deletions
+29
-0
playbooks/roles/notifier/defaults/main.yml
+4
-0
playbooks/roles/notifier/tasks/deploy.yml
+19
-0
playbooks/roles/notifier/templates/settings_local.py
+6
-0
No files found.
playbooks/roles/notifier/defaults/main.yml
View file @
742fed85
...
...
@@ -13,6 +13,10 @@ NOTIFIER_LOG_LEVEL: "INFO"
NOTIFIER_RSYSLOG_ENABLED
:
"
yes"
NOTIFIER_DIGEST_TASK_INTERVAL
:
"
1440"
NOTIFIER_THEME_NAME
:
"
"
NOTIFIER_THEME_REPO
:
"
"
NOTIFIER_THEME_VERSION
:
"
master"
NOTIFIER_DIGEST_EMAIL_SENDER
:
"
notifications@example.com"
NOTIFIER_DIGEST_EMAIL_SUBJECT
:
"
Daily
Discussion
Digest"
NOTIFIER_DIGEST_EMAIL_TITLE
:
"
Discussion
Digest"
...
...
playbooks/roles/notifier/tasks/deploy.yml
View file @
742fed85
...
...
@@ -11,6 +11,25 @@
-
restart notifier-scheduler
-
restart notifier-celery-workers
-
name
:
checkout theme
git
:
>
dest={{ NOTIFIER_CODE_DIR }}/{{NOTIFIER_THEME_NAME}}
repo={{NOTIFIER_THEME_REPO}}
version={{NOTIFIER_THEME_VERSION}}
accept_hostkey=yes
when
:
NOTIFIER_THEME_NAME != ''
sudo_user
:
"
{{
NOTIFIER_USER
}}"
environment
:
GIT_SSH
:
"
{{
NOTIFIER_GIT_SSH
}}"
-
name
:
write notifier local settings
template
:
>
src=settings_local.py.j2
dest={{ NOTIFIER_CODE_DIR }}/settings_local.py
when
:
NOTIFIER_THEME_NAME != ''
notify
:
-
restart notifier-celery-workers
-
name
:
source repo group perms
file
:
path={{ NOTIFIER_SOURCE_REPO }} mode=2775 state=directory
...
...
playbooks/roles/notifier/templates/settings_local.py
0 → 100644
View file @
742fed85
from
.settings
import
*
FORUM_DIGEST_EMAIL_SUBJECT
=
'{{ NOTIFIER_DIGEST_EMAIL_SUBJECT }}'
CUSTOM_THEME_DIR
=
'{{ NOTIFIER_CODE_DIR }}/{{NOTIFIER_THEME_NAME}}/'
TEMPLATE_DIRS
=
(
CUSTOM_THEME_DIR
+
'templates'
,)
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