Skip to content

Commit

Permalink
Merge pull request #790 from mysociety/add-redundancy-group
Browse files Browse the repository at this point in the history
Add missing `redundancy_group` param to the dependency object type
  • Loading branch information
lbetz authored Sep 3, 2024
2 parents 6a22942 + 1ddd86c commit 826aad1
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
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

0 comments on commit 826aad1

Please sign in to comment.