Skip to content

Commit

Permalink
fix #736 drop concurrent_checks parameter from feature checker
Browse files Browse the repository at this point in the history
  • Loading branch information
lbetz committed Sep 8, 2023
1 parent 8446a16 commit ef9d5f3
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 26 deletions.
12 changes: 0 additions & 12 deletions REFERENCE.md
Original file line number Diff line number Diff line change
Expand Up @@ -659,15 +659,11 @@ Default value: `undef`

Configures the Icinga 2 feature checker.

* **Note** Deprecated in Icinga 2.11, replaced by global constant
MaxConcurrentChecks which will be set if you still use concurrent_checks.

#### Parameters

The following parameters are available in the `icinga2::feature::checker` class:

* [`ensure`](#-icinga2--feature--checker--ensure)
* [`concurrent_checks`](#-icinga2--feature--checker--concurrent_checks)

##### <a name="-icinga2--feature--checker--ensure"></a>`ensure`

Expand All @@ -677,14 +673,6 @@ Set to present enables the feature checker, absent disabled it.

Default value: `present`

##### <a name="-icinga2--feature--checker--concurrent_checks"></a>`concurrent_checks`

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

The maximum number of concurrent checks.

Default value: `undef`

### <a name="icinga2--feature--command"></a>`icinga2::feature::command`

Configures the Icinga 2 feature command.
Expand Down
14 changes: 0 additions & 14 deletions manifests/feature/checker.pp
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,8 @@
# @param ensure
# Set to present enables the feature checker, absent disabled it.
#
# @param concurrent_checks
# The maximum number of concurrent checks.
#
# @note Deprecated in Icinga 2.11, replaced by global constant
# MaxConcurrentChecks which will be set if you still use concurrent_checks.
#
class icinga2::feature::checker (
Enum['absent', 'present'] $ensure = present,
Optional[Integer[1]] $concurrent_checks = undef,
) {
if ! defined(Class['icinga2']) {
fail('You must include the icinga2 base class before using any icinga2 feature class!')
Expand All @@ -24,17 +17,10 @@
default => undef,
}

# compose attributes
$attrs = {
concurrent_checks => $concurrent_checks,
}

# create object
icinga2::object { 'icinga2::object::CheckerComponent::checker':
object_name => 'checker',
object_type => 'CheckerComponent',
attrs => delete_undef_values($attrs),
attrs_list => keys($attrs),
target => "${conf_dir}/features-available/checker.conf",
order => 10,
notify => $_notify,
Expand Down

0 comments on commit ef9d5f3

Please sign in to comment.