From 42f895e6bca63d24035ea1bfee92b461c903d98b Mon Sep 17 00:00:00 2001 From: Lennart Betz Date: Wed, 22 Mar 2023 16:31:19 +0100 Subject: [PATCH] Release version 3.6.0 --- CHANGELOG.md | 11 ++- REFERENCE.md | 181 ++++++++++++++++++++++++++++++++++++++++++++++++++ metadata.json | 2 +- 3 files changed, 192 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 016c2d2e..b411d027 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,14 @@ # Change Log +## [v3.6.0](https://github.com/icinga/puppet-icinga2/tree/v3.6.0) (2023-03-22) +[Full Changelog](https://github.com/icinga/puppet-icinga2/compare/v3.5.3...v3.6.0) + +**Implemented enhancements:** + +- Performance issues with larger setups [\#392](https://github.com/Icinga/puppet-icinga2/issues/392) +- Add feature to handle large monitoring environments [\#723](https://github.com/Icinga/puppet-icinga2/pull/723) ([lbetz](https://github.com/lbetz)) +- Use a case statement to parse rows [\#722](https://github.com/Icinga/puppet-icinga2/pull/722) ([lbetz](https://github.com/lbetz)) + ## [v3.5.3](https://github.com/icinga/puppet-icinga2/tree/v3.5.3) (2023-01-12) [Full Changelog](https://github.com/icinga/puppet-icinga2/compare/v3.5.2...v3.5.3) @@ -752,7 +761,7 @@ - Fix parse issues when attribute is a nested hash with an array value [\#225](https://github.com/Icinga/puppet-icinga2/pull/225) ([lbetz](https://github.com/lbetz)) - Remove Puppet 4 Warning - delete :undef symbols in attr hash [\#222](https://github.com/Icinga/puppet-icinga2/pull/222) ([Reamer](https://github.com/Reamer)) - Allow other time units in notification and scheduleddowntime [\#220](https://github.com/Icinga/puppet-icinga2/pull/220) ([jkroepke](https://github.com/jkroepke)) -- Add initial FreeBSD support [\#210](https://github.com/Icinga/puppet-icinga2/pull/210) ([xaque208](https://github.com/xaque208)) +- Add initial FreeBSD support [\#210](https://github.com/Icinga/puppet-icinga2/pull/210) ([zachfi](https://github.com/zachfi)) ## [v1.0.2](https://github.com/icinga/puppet-icinga2/tree/v1.0.2) (2017-01-24) [Full Changelog](https://github.com/icinga/puppet-icinga2/compare/v1.0.1...v1.0.2) diff --git a/REFERENCE.md b/REFERENCE.md index 0c657e2f..0ccce901 100644 --- a/REFERENCE.md +++ b/REFERENCE.md @@ -31,6 +31,7 @@ * [`icinga2::feature::syslog`](#icinga2featuresyslog): Configures the Icinga 2 feature syslog. * [`icinga2::feature::windowseventlog`](#icinga2featurewindowseventlog): Configures the Icinga 2 feature windowseventlog. * [`icinga2::pki::ca`](#icinga2pkica): This class provides multiple ways to create the CA used by Icinga 2. +* [`icinga2::query_objects`](#icinga2query_objects): Class to query `icinga2::objects` from puppetdb. #### Private Classes @@ -2724,6 +2725,33 @@ Content of the CA key. If this is unset, a key will be generated with the Icinga Default value: ``undef`` +### `icinga2::query_objects` + +Class to query `icinga2::objects` from puppetdb. + +#### Parameters + +The following parameters are available in the `icinga2::query_objects` class: + +* [`destination`](#destination) +* [`environments`](#environments) + +##### `destination` + +Data type: `String` + +Destination equal to what was set in parameter `export` for objects. + +Default value: `$facts['networking']['fqdn']` + +##### `environments` + +Data type: `Array[String]` + +limits the response to objects of these environments + +Default value: `[$environment]` + ## Defined types ### `icinga2::config::fragment` @@ -2856,6 +2884,7 @@ The following parameters are available in the `icinga2::object::apiuser` defined * [`permissions`](#permissions) * [`target`](#target) * [`order`](#order) +* [`export`](#export) ##### `ensure` @@ -2913,6 +2942,14 @@ String or integer to set the position in the target file, sorted alpha numeric. Default value: `30` +##### `export` + +Data type: `Variant[Array[String], String]` + +Export object to destination, collected by class `icinga2::query_objects`. + +Default value: `[]` + ### `icinga2::object::checkcommand` Manage Icinga 2 Host objects. @@ -2932,6 +2969,7 @@ The following parameters are available in the `icinga2::object::checkcommand` de * [`target`](#target) * [`template`](#template) * [`order`](#order) +* [`export`](#export) ##### `ensure` @@ -3024,6 +3062,14 @@ String or integer to set the position in the target file, sorted alpha numeric. Default value: `15` +##### `export` + +Data type: `Variant[Array[String], String]` + +Export object to destination, collected by class `icinga2::query_objects`. + +Default value: `[]` + ### `icinga2::object::checkresultreader` Manage Icinga 2 CheckResultReader objects. @@ -3105,6 +3151,7 @@ The following parameters are available in the `icinga2::object::dependency` defi * [`import`](#import) * [`target`](#target) * [`order`](#order) +* [`export`](#export) ##### `ensure` @@ -3271,6 +3318,14 @@ String or integer to set the position in the target file, sorted alpha numeric. Default value: `70` +##### `export` + +Data type: `Variant[Array[String], String]` + +Export object to destination, collected by class `icinga2::query_objects`. + +Default value: `[]` + ### `icinga2::object::endpoint` Manage Icinga 2 endpoint objects. @@ -3286,6 +3341,7 @@ The following parameters are available in the `icinga2::object::endpoint` define * [`log_duration`](#log_duration) * [`target`](#target) * [`order`](#order) +* [`export`](#export) ##### `ensure` @@ -3347,6 +3403,14 @@ String or integer to set the position in the target file, sorted alpha numeric. Default value: `40` +##### `export` + +Data type: `Variant[Array[String], String]` + +Export object to destination, collected by class `icinga2::query_objects`. + +Default value: `[]` + ### `icinga2::object::eventcommand` Manage Icinga 2 EventCommand objects. @@ -3365,6 +3429,7 @@ The following parameters are available in the `icinga2::object::eventcommand` de * [`target`](#target) * [`import`](#import) * [`order`](#order) +* [`export`](#export) ##### `ensure` @@ -3449,6 +3514,14 @@ String or integer to set the position in the target file, sorted alpha numeric. Default value: `20` +##### `export` + +Data type: `Variant[Array[String], String]` + +Export object to destination, collected by class `icinga2::query_objects`. + +Default value: `[]` + ### `icinga2::object::host` Manage Icinga 2 Host objects. @@ -3491,6 +3564,7 @@ The following parameters are available in the `icinga2::object::host` defined ty * [`template`](#template) * [`target`](#target) * [`order`](#order) +* [`export`](#export) ##### `ensure` @@ -3766,6 +3840,14 @@ String or integer to set the position in the target file, sorted alpha numeric. Default value: `50` +##### `export` + +Data type: `Variant[Array[String], String]` + +Export object to destination, collected by class `icinga2::query_objects`. + +Default value: `[]` + ### `icinga2::object::hostgroup` Manage Icinga 2 HostGroup objects. @@ -3795,6 +3877,7 @@ The following parameters are available in the `icinga2::object::hostgroup` defin * [`ignore`](#ignore) * [`target`](#target) * [`order`](#order) +* [`export`](#export) ##### `ensure` @@ -3859,6 +3942,14 @@ String or integer to set the position in the target file, sorted alpha numeric. Default value: `55` +##### `export` + +Data type: `Variant[Array[String], String]` + +Export object to destination, collected by class `icinga2::query_objects`. + +Default value: `[]` + ### `icinga2::object::icingaapplication` Manage Icinga 2 IcingaApplication objects. @@ -3879,6 +3970,7 @@ The following parameters are available in the `icinga2::object::icingaapplicatio * [`environment`](#environment) * [`target`](#target) * [`order`](#order) +* [`export`](#export) ##### `ensure` @@ -3980,6 +4072,14 @@ String or integer to control the position in the target file, sorted alpha numer Default value: `5` +##### `export` + +Data type: `Variant[Array[String], String]` + +Export object to destination, collected by class `icinga2::query_objects`. + +Default value: `[]` + ### `icinga2::object::notification` Manage Icinga 2 notification objects. @@ -4011,6 +4111,7 @@ The following parameters are available in the `icinga2::object::notification` de * [`order`](#order) * [`assign`](#assign) * [`ignore`](#ignore) +* [`export`](#export) ##### `ensure` @@ -4202,6 +4303,14 @@ Exclude notification using the ignore rules. Default value: `[]` +##### `export` + +Data type: `Variant[Array[String], String]` + +Export object to destination, collected by class `icinga2::query_objects`. + +Default value: `[]` + ### `icinga2::object::notificationcommand` Manage Icinga 2 notificationcommand objects. @@ -4221,6 +4330,7 @@ The following parameters are available in the `icinga2::object::notificationcomm * [`import`](#import) * [`target`](#target) * [`order`](#order) +* [`export`](#export) ##### `ensure` @@ -4314,6 +4424,14 @@ String or integer to set the position in the target file, sorted alpha numeric. Default value: `25` +##### `export` + +Data type: `Variant[Array[String], String]` + +Export object to destination, collected by class `icinga2::query_objects`. + +Default value: `[]` + ### `icinga2::object::scheduleddowntime` Manage Icinga 2 scheduleddowntime objects. @@ -4338,6 +4456,7 @@ The following parameters are available in the `icinga2::object::scheduleddowntim * [`ignore`](#ignore) * [`target`](#target) * [`order`](#order) +* [`export`](#export) ##### `ensure` @@ -4467,6 +4586,14 @@ String or integer to set the position in the target file, sorted alpha numeric. Default value: `90` +##### `export` + +Data type: `Variant[Array[String], String]` + +Export object to destination, collected by class `icinga2::query_objects`. + +Default value: `[]` + ### `icinga2::object::service` Manage Icinga 2 service objects. @@ -4541,6 +4668,7 @@ The following parameters are available in the `icinga2::object::service` defined * [`import`](#import) * [`target`](#target) * [`order`](#order) +* [`export`](#export) ##### `ensure` @@ -4848,6 +4976,14 @@ String or integer to set the position in the target file, sorted alpha numeric. Default value: `60` +##### `export` + +Data type: `Variant[Array[String], String]` + +Export object to destination, collected by class `icinga2::query_objects`. + +Default value: `[]` + ### `icinga2::object::servicegroup` Manage Icinga 2 servicegroup objects. @@ -4866,6 +5002,7 @@ The following parameters are available in the `icinga2::object::servicegroup` de * [`import`](#import) * [`target`](#target) * [`order`](#order) +* [`export`](#export) ##### `ensure` @@ -4946,6 +5083,14 @@ String or integer to set the position in the target file, sorted alpha numeric. Default value: `65` +##### `export` + +Data type: `Variant[Array[String], String]` + +Export object to destination, collected by class `icinga2::query_objects`. + +Default value: `[]` + ### `icinga2::object::timeperiod` Manage Icinga 2 timeperiod objects. @@ -4965,6 +5110,7 @@ The following parameters are available in the `icinga2::object::timeperiod` defi * [`template`](#template) * [`target`](#target) * [`order`](#order) +* [`export`](#export) ##### `ensure` @@ -5053,6 +5199,14 @@ String or integer to control the position in the target file, sorted alpha numer Default value: `35` +##### `export` + +Data type: `Variant[Array[String], String]` + +Export object to destination, collected by class `icinga2::query_objects`. + +Default value: `[]` + ### `icinga2::object::user` Manage Icinga 2 user objects. @@ -5076,6 +5230,7 @@ The following parameters are available in the `icinga2::object::user` defined ty * [`import`](#import) * [`target`](#target) * [`order`](#order) +* [`export`](#export) ##### `ensure` @@ -5200,6 +5355,14 @@ String or integer to set the position in the target file, sorted alpha numeric. Default value: `75` +##### `export` + +Data type: `Variant[Array[String], String]` + +Export object to destination, collected by class `icinga2::query_objects`. + +Default value: `[]` + ### `icinga2::object::usergroup` Manage Icinga 2 usergroup objects. @@ -5218,6 +5381,7 @@ The following parameters are available in the `icinga2::object::usergroup` defin * [`import`](#import) * [`target`](#target) * [`order`](#order) +* [`export`](#export) ##### `ensure` @@ -5298,6 +5462,14 @@ String or integer to set the position in the target file, sorted alpha numeric. Default value: `80` +##### `export` + +Data type: `Variant[Array[String], String]` + +Export object to destination, collected by class `icinga2::query_objects`. + +Default value: `[]` + ### `icinga2::object::zone` Manage Icinga 2 zone objects. @@ -5313,6 +5485,7 @@ The following parameters are available in the `icinga2::object::zone` defined ty * [`global`](#global) * [`target`](#target) * [`order`](#order) +* [`export`](#export) ##### `ensure` @@ -5372,6 +5545,14 @@ String or integer to control the position in the target file, sorted alpha numer Default value: `45` +##### `export` + +Data type: `Variant[Array[String], String]` + +Export object to destination, collected by class `icinga2::query_objects`. + +Default value: `[]` + ## Functions ### `icinga2::cert` diff --git a/metadata.json b/metadata.json index 63053199..11a3fce0 100644 --- a/metadata.json +++ b/metadata.json @@ -1,6 +1,6 @@ { "name": "icinga-icinga2", - "version": "3.5.3", + "version": "3.6.0", "author": "Icinga Development Team", "summary": "Icinga 2 Puppet Module", "license": "Apache-2.0",