-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
44 changed files
with
999 additions
and
584 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
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,29 @@ | ||
|
||
DOCUMENTATION: | ||
name: append_checksum | ||
author: Bodo Schulz (@bodsch) | ||
version_added: 1.0.0 | ||
short_description: create a list from list | ||
description: | ||
- create a list from list. | ||
positional: _input | ||
options: | ||
_input: | ||
description: a dictionary with some icingaweb modules or themes. | ||
type: dict | ||
required: true | ||
checksums: | ||
description: A dictionary mit checksums. | ||
type: dict | ||
required: true | ||
notes: | ||
|
||
EXAMPLES: | | ||
icingaweb_modules: "{{ icingaweb_modules | bodsch.icinga.append_checksum(_module_checksum) }}" | ||
icingaweb_themes: "{{ icingaweb_themes | bodsch.icinga.append_checksum(_theme_checksum) }}" | ||
RETURN: | ||
_value: | ||
description: The original dictionary, in which each entry was extended with a checksum for the corresponding archive. | ||
type: dict |
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,27 @@ | ||
|
||
DOCUMENTATION: | ||
name: apply_notification | ||
author: Bodo Schulz (@bodsch) | ||
version_added: 1.0.0 | ||
short_description: TBD | ||
description: | ||
- TBD | ||
positional: _input | ||
options: | ||
_input: | ||
description: A directories of ... | ||
type: dict | ||
required: true | ||
name: | ||
description: TBD. | ||
type: string | ||
required: true | ||
notes: | ||
|
||
EXAMPLES: | | ||
data, _type, valid_data = icinga2_notification_apply_rules | bodsch.icinga.apply_notification(n) | ||
RETURN: | ||
_value: | ||
description: TBD | ||
type: tuple |
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,27 @@ | ||
|
||
DOCUMENTATION: | ||
name: apply_service_name | ||
author: Bodo Schulz (@bodsch) | ||
version_added: 1.0.0 | ||
short_description: TBD | ||
description: | ||
- TBD | ||
positional: _input | ||
options: | ||
_input: | ||
description: A directories of ... | ||
type: dict | ||
required: true | ||
default: | ||
description: TBD. | ||
type: string | ||
required: true | ||
notes: | ||
|
||
EXAMPLES: | | ||
v, _name = v | bodsch.icinga.apply_service_name(c) | ||
RETURN: | ||
_value: | ||
description: TBD | ||
type: tuple |
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,27 @@ | ||
|
||
DOCUMENTATION: | ||
name: database_schema | ||
author: Bodo Schulz (@bodsch) | ||
version_added: 1.0.0 | ||
short_description: Defines a database schema file to be imported. | ||
description: | ||
- Defines a database schema file to be imported. | ||
positional: _input | ||
options: | ||
_input: | ||
description: A dictionary with found files. | ||
type: dict | ||
required: true | ||
database_type: | ||
description: A string with database types to be searched for in the dictionary. The default is ‘mysql’ | ||
type: string | ||
required: false | ||
notes: | ||
|
||
EXAMPLES: | | ||
icingadb_database_schema: "{{ found_schema | bodsch.icinga.database_schema('mysql') | first }}" | ||
RETURN: | ||
_value: | ||
description: A list of the files found. | ||
type: list |
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,27 @@ | ||
|
||
DOCUMENTATION: | ||
name: database_upgrade_directory | ||
author: Bodo Schulz (@bodsch) | ||
version_added: 1.0.0 | ||
short_description: Defines a directory from which update files are to be obtained. | ||
description: | ||
- Defines a directory from which update files are to be obtained. | ||
positional: _input | ||
options: | ||
_input: | ||
description: A dictionary with found directories. | ||
type: dict | ||
required: true | ||
database_type: | ||
description: A string with database types to be searched for in the dictionary. The default is ‘mysql’ | ||
type: string | ||
required: false | ||
notes: | ||
|
||
EXAMPLES: | | ||
icingadb_upgrade_directory: "{{ found_directory | bodsch.icinga.database_upgrade_directory('mysql')}}" | ||
RETURN: | ||
_value: | ||
description: A string with the found directories. | ||
type: string |
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,27 @@ | ||
|
||
DOCUMENTATION: | ||
name: dict_from_list | ||
author: Bodo Schulz (@bodsch) | ||
version_added: 1.0.0 | ||
short_description: create a dictionary from list | ||
description: | ||
- create a dictionary from list. | ||
positional: _input | ||
options: | ||
_input: | ||
description: A list of elements. | ||
type: list | ||
required: true | ||
search: | ||
description: An string to search entries in (c(_input)) list. | ||
type: string | ||
required: true | ||
notes: | ||
|
||
EXAMPLES: | | ||
_icingaweb_module_grafana: "{{ icingaweb_modules | bodsch.icinga.dict_from_list('grafana') }}" | ||
RETURN: | ||
_value: | ||
description: The element you are looking for as a dictionary. | ||
type: dict |
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,35 @@ | ||
|
||
DOCUMENTATION: | ||
name: dns_icinga_primary | ||
author: Bodo Schulz (@bodsch) | ||
version_added: 1.0.0 | ||
short_description: TBD | ||
description: | ||
- TBD | ||
positional: _input | ||
options: | ||
_input: | ||
description: A directories of ... | ||
type: dict | ||
required: true | ||
object_name: | ||
description: TBD. | ||
type: bool | ||
required: true | ||
object_data: | ||
description: TBD. | ||
type: string | ||
required: true | ||
alternatives: | ||
description: TBD. | ||
type: list | ||
required: true | ||
notes: | ||
|
||
EXAMPLES: | | ||
address = icinga2_masters | bodsch.icinga.dns_icinga_primary(object_name=key, object_data=values, alternatives=[key, ansible_fqdn]) | ||
RETURN: | ||
_value: | ||
description: TBD | ||
type: string |
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,39 @@ | ||
|
||
DOCUMENTATION: | ||
name: dns_icinga_satellite | ||
author: Bodo Schulz (@bodsch) | ||
version_added: 1.0.0 | ||
short_description: TBD | ||
description: | ||
- TBD | ||
positional: _input | ||
options: | ||
_input: | ||
description: A directories of ... | ||
type: dict | ||
required: true | ||
object_name: | ||
description: TBD. | ||
type: bool | ||
required: true | ||
object_data: | ||
description: TBD. | ||
type: string | ||
required: true | ||
satellite_zone: | ||
description: TBD. | ||
type: dict | ||
required: true | ||
alternatives: | ||
description: TBD. | ||
type: list | ||
required: true | ||
notes: | ||
|
||
EXAMPLES: | | ||
address = icinga2_masters | bodsch.icinga.dns_icinga_satellite(object_name=key, object_data=values, satellite_zone=icinga2_satellite_zone, alternatives=[key, ansible_fqdn]) | ||
RETURN: | ||
_value: | ||
description: TBD | ||
type: string |
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,38 @@ | ||
|
||
DOCUMENTATION: | ||
name: host_object_values | ||
author: Bodo Schulz (@bodsch) | ||
version_added: 1.0.0 | ||
short_description: TBD | ||
description: | ||
- TBD | ||
positional: _input | ||
options: | ||
_input: | ||
description: A directories of ... | ||
type: dict | ||
required: true | ||
primary: | ||
description: TBD. | ||
type: bool | ||
required: true | ||
key: | ||
description: TBD. | ||
type: string | ||
required: true | ||
ansible_fqdn: | ||
description: TBD. | ||
type: string | ||
required: true | ||
notes: | ||
|
||
EXAMPLES: | | ||
values, endpoint, endpoint_name, zone_name, display_name, check_command, _ = values | bodsch.icinga.host_object_values(True, key, None) | ||
values, _, object_name, zone_name, display_name, check_command, address = values | bodsch.icinga.host_object_values(False, key, ansible_fqdn) | ||
RETURN: | ||
_value: | ||
description: TBD | ||
type: tuple |
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,27 @@ | ||
|
||
DOCUMENTATION: | ||
name: icinga_satellite_zone | ||
author: Bodo Schulz (@bodsch) | ||
version_added: 1.0.0 | ||
short_description: Defines a satellite zone if icinga2_satellites is configured. | ||
description: | ||
- Defines a satellite zone if icinga2_satellites is configured. | ||
positional: _input | ||
options: | ||
_input: | ||
description: A directories of icinga satellites. | ||
type: dict | ||
required: true | ||
ansible_fqdn: | ||
description: The ansible_fqdn to search for in the dictionary to define the zone. | ||
type: string | ||
required: true | ||
notes: | ||
|
||
EXAMPLES: | | ||
icinga2_satellite_zone: "{{ icinga2_satellites | bodsch.icinga.icinga_satellite_zone(ansible_fqdn) }}" | ||
RETURN: | ||
_value: | ||
description: The zone name for the ansible_fqdn. | ||
type: string |
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
Oops, something went wrong.