-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ref #32 added more documentation for features and objects
- Loading branch information
1 parent
58ee8e1
commit e342fd5
Showing
7 changed files
with
401 additions
and
13 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,18 @@ | ||
## Graphite | ||
|
||
To enable the feature Graphite use the following block in the variable `icinga2_features`. | ||
|
||
``` | ||
icinga2_features: | ||
- name: graphite | ||
host: localhost | ||
port: 2003 | ||
``` | ||
|
||
### Feature variables | ||
|
||
* `host: string` | ||
* Name or address of the graphite instance. | ||
|
||
* `port: int` | ||
* |
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,19 @@ | ||
## Mainlog | ||
|
||
To enable the feature mainlog add the following block to the variable `icinga2_features`. | ||
|
||
``` | ||
icinga2_features: | ||
- name: mainlog | ||
``` | ||
|
||
### Feature variables | ||
|
||
* `severity: string` | ||
* The minimum severity for this log. Possible values “debug”, “notice”, “information”, “warning” or “critical”. | ||
|
||
* `path: string` | ||
* The Log Path, default: `LogDir + /icinga2.log` | ||
|
||
* `state: string` | ||
* Decides whether the feature is enabled or disabled. Possible values present, absent. |
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,32 @@ | ||
## Notification | ||
|
||
To activate the feature notification add this block to the variable `icinga2_features`. | ||
|
||
``` | ||
icinga2_features: | ||
- name: notification | ||
``` | ||
|
||
### Notification Scripts | ||
|
||
The role won't manage notifications scripts with the role. Many scripts require dependencies or libraries to be installed. To manage those dependencies create a Ansible role and use it after the Icinga 2 role. | ||
|
||
If there are no dependencies on the script you can easily use the `post_tasks` section in your playbook. Example: | ||
|
||
``` | ||
post_tasks: | ||
- name: copy notifications script | ||
src: rocket_chat_notification.py | ||
dest: /etc/icinga2/scripts/rocket_chat_notification.py | ||
group: "{{ icinga2_group }} | ||
user: "{{ icinga2_user}}" | ||
``` | ||
|
||
### Feature Attributes | ||
|
||
* `enable_ha: boolean` | ||
* Enable the high availability functionality. Only valid in a cluster setup. Disabling this currently only affects reminder notifications. | ||
|
||
* `state: string` | ||
* Decides whether the feature is enabled or disabled. Possible values present, absent. | ||
|
Oops, something went wrong.