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
e3b2ee50
Commit
e3b2ee50
authored
Aug 14, 2013
by
e0d
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cleanup.
parent
b69a2a18
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
41 additions
and
29 deletions
+41
-29
playbooks/roles/notifier/tasks/main.yml
+39
-28
playbooks/roles/notifier/vars/main.yml
+2
-1
No files found.
playbooks/roles/notifier/tasks/main.yml
View file @
e3b2ee50
...
@@ -126,30 +126,30 @@
...
@@ -126,30 +126,30 @@
-
install
-
install
-
update
-
update
#
# TODO: Add version improvement
# TODO: Add version improvement
#
#
-
name
:
notifier | check if dd is installed
#
name: notifier | check if dd is installed
command
:
test -e /etc/dd-agent/datadog.conf
#
command: test -e /etc/dd-agent/datadog.conf
register
:
dd_present
#
register: dd_present
ignore_errors
:
yes
#
ignore_errors: yes
tags
:
#
tags:
-
notifier
#
- notifier
-
install
#
- install
-
update
#
- update
#
-
name
:
notifier | install datadog agent
#
name: notifier | install datadog agent
shell
:
bash -c "$(wget -qO- http://dtdg.co/agent-install-ubuntu)"
#
shell: bash -c "$(wget -qO- http://dtdg.co/agent-install-ubuntu)"
environment
:
#
environment:
DD_API_KEY
:
"
{{
notifier_dd_api_key
}}"
#
DD_API_KEY: "{{ notifier_dd_api_key }}"
when
:
dd_present|failed
#
when: dd_present|failed
tags
:
#
tags:
-
notifier
#
- notifier
-
install
#
- install
-
update
#
- update
-
ubuntu
#
- ubuntu
-
name
:
common
| create notifier/bin directory
-
name
:
notifier
| create notifier/bin directory
file
:
file
:
path="{{ notifier_home }}/bin" mode=2775 state=directory
path="{{ notifier_home }}/bin" mode=2775 state=directory
tags
:
tags
:
...
@@ -175,18 +175,29 @@
...
@@ -175,18 +175,29 @@
-
install
-
install
-
update
-
update
-
name
:
notifier | add cron job
#- name: notifier | add cron job
cron
:
name="forums digest" hour="0" minute="0" job="$HOME/forums_digest.sh 1440"
# cron:
sudo
:
true
# name="forums digest" hour={{ notifier_cron_hour }}
sudo_user
:
"
{{
notifier_user
}}"
# minute="{{ notifier_cron_minute }}" job="$HOME/forums_digest.sh 1440"
# sudo: true
# sudo_user: "{{ notifier_user }}"
# tags:
# - notifier
# - install
# - update
-
name
:
notifier | supervisord config for celery workers
template
:
src=etc/supervisor/conf.d/notifier-celery-workers.conf.j2 dest=/etc/supervisor/conf.d/notifier-celery-workers.conf
notify
:
notifier | restart supervisor
tags
:
tags
:
-
notifier
-
notifier
-
install
-
install
-
update
-
update
-
name
:
notifier | supervisord config for celery
workers
-
name
:
notifier | supervisord config for celery
beat
template
:
template
:
src=etc/supervisor/conf.d/notifier-celery-
workers.conf.j2 dest=/etc/supervisor/conf.d/notifier-celery-workers
.conf
src=etc/supervisor/conf.d/notifier-celery-
beat.conf.j2 dest=/etc/supervisor/conf.d/notifier-celery-beat
.conf
notify
:
notifier | restart supervisor
notify
:
notifier | restart supervisor
tags
:
tags
:
-
notifier
-
notifier
...
...
playbooks/roles/notifier/vars/main.yml
View file @
e3b2ee50
...
@@ -12,6 +12,7 @@ notifier_git_identity_path: "{{ secure_dir }}/files/git-identity"
...
@@ -12,6 +12,7 @@ notifier_git_identity_path: "{{ secure_dir }}/files/git-identity"
notifier_requirements_file
:
"
{{
notifier_code_dir
}}/requirements.txt"
notifier_requirements_file
:
"
{{
notifier_code_dir
}}/requirements.txt"
notifier_log_level
:
"
INFO"
notifier_log_level
:
"
INFO"
notifier_rsyslog_enabled
:
"
yes"
notifier_rsyslog_enabled
:
"
yes"
notifier_digest_task_interval
:
"
5"
notifier_env
:
"
Development"
notifier_env
:
"
Development"
...
@@ -22,7 +23,6 @@ notifier_email_user: ""
...
@@ -22,7 +23,6 @@ notifier_email_user: ""
notifier_email_pass
:
"
"
notifier_email_pass
:
"
"
notifier_email_host
:
"
"
notifier_email_host
:
"
"
notifier_email_domain
:
"
notifications.edx.org"
notifier_email_domain
:
"
notifications.edx.org"
notifier_email_rewrite_recipient
:
"
"
notifier_email_rewrite_recipient
:
"
"
...
@@ -75,3 +75,4 @@ notifier_env_vars:
...
@@ -75,3 +75,4 @@ notifier_env_vars:
REQUESTS_CA_BUNDLE
:
"
{{
notifer_requests_ca_bundle
}}"
REQUESTS_CA_BUNDLE
:
"
{{
notifer_requests_ca_bundle
}}"
US_HTTP_AUTH_USER
:
"
{{
notifier_user_service_http_auth_user
}}"
US_HTTP_AUTH_USER
:
"
{{
notifier_user_service_http_auth_user
}}"
US_HTTP_AUTH_PASS
:
"
{{
notifier_user_service_http_auth_pass
}}"
US_HTTP_AUTH_PASS
:
"
{{
notifier_user_service_http_auth_pass
}}"
FORUM_DIGEST_TASK_INTERVAL
:
"
{{
notifier_digest_task_interval
}}"
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