Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add missing redundancy_group param to the dependency object type #790

Merged
merged 1 commit into from
Sep 3, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions REFERENCE.md
Original file line number Diff line number Diff line change
Expand Up @@ -3116,6 +3116,7 @@ The following parameters are available in the `icinga2::object::dependency` defi
* [`parent_service_name`](#-icinga2--object--dependency--parent_service_name)
* [`child_host_name`](#-icinga2--object--dependency--child_host_name)
* [`child_service_name`](#-icinga2--object--dependency--child_service_name)
* [`redundancy_group`](#-icinga2--object--dependency--redundancy_group)
* [`disable_checks`](#-icinga2--object--dependency--disable_checks)
* [`disable_notifications`](#-icinga2--object--dependency--disable_notifications)
* [`ignore_soft_states`](#-icinga2--object--dependency--ignore_soft_states)
Expand Down Expand Up @@ -3182,6 +3183,14 @@ dependency.

Default value: `undef`

##### <a name="-icinga2--object--dependency--redundancy_group"></a>`redundancy_group`

Data type: `Optional[String[1]]`

The redundancy group - puts the dependency into a group of mutually redundant ones.

Default value: `undef`

##### <a name="-icinga2--object--dependency--disable_checks"></a>`disable_checks`

Data type: `Optional[Boolean]`
Expand Down
5 changes: 5 additions & 0 deletions manifests/object/dependency.pp
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@
# The child service. If omitted, this dependency object is treated as host
# dependency.
#
# @param redundancy_group
# The redundancy group - puts the dependency into a group of mutually redundant ones.
#
# @param disable_checks
# Whether to disable checks when this dependency fails.
#
Expand Down Expand Up @@ -79,6 +82,7 @@
Optional[String[1]] $parent_service_name = undef,
Optional[String[1]] $child_host_name = undef,
Optional[String[1]] $child_service_name = undef,
Optional[String[1]] $redundancy_group = undef,
Optional[Boolean] $disable_checks = undef,
Optional[Boolean] $disable_notifications = undef,
Optional[Boolean] $ignore_soft_states = undef,
Expand All @@ -102,6 +106,7 @@
'parent_service_name' => $parent_service_name,
'child_host_name' => $child_host_name,
'child_service_name' => $child_service_name,
'redundancy_group' => $redundancy_group,
'disable_checks' => $disable_checks,
'disable_notifications' => $disable_notifications,
'ignore_soft_states' => $ignore_soft_states,
Expand Down
Loading