This repository has been archived by the owner on Oct 12, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Start of contact groups for issue #5
Contact groups are a useful way of sending alerts and avoiding single person failures. I can't quite figure out what I need to do yet so I'm goint to put this on the backburner while I consider issues #7 and #9.
- Loading branch information
Showing
2 changed files
with
39 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
# {{ ansible_managed }} | ||
{% set admin_users = [0] -%} | ||
{% for key, value in item.iteritems() %} | ||
{% if key == 'is_admin' and value == '1' %} | ||
{% set admin_users.append('item.name') %} | ||
{% endif %} | ||
{% endfor %} | ||
|
||
define contactgroup{ | ||
contactgroup_name admins | ||
alias admins | ||
members {{ admin_users }} | ||
} | ||
|