Skip to content

Commit

Permalink
Release version 3.6.1
Browse files Browse the repository at this point in the history
  • Loading branch information
lbetz committed Apr 2, 2023
1 parent 9944e78 commit d6d842d
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 13 deletions.
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# Change Log

## [v3.6.1](https://github.com/icinga/puppet-icinga2/tree/v3.6.1) (2023-04-02)
[Full Changelog](https://github.com/icinga/puppet-icinga2/compare/v3.6.0...v3.6.1)

**Fixed bugs:**

- make object-collection deterministic in icinga2::query\_objects [\#725](https://github.com/Icinga/puppet-icinga2/pull/725) ([sircubbi](https://github.com/sircubbi))
- Bugfix: don't fail if more than one environment is given in query\_objects and allow to collect from all environments [\#724](https://github.com/Icinga/puppet-icinga2/pull/724) ([sircubbi](https://github.com/sircubbi))

## [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)

Expand Down
30 changes: 18 additions & 12 deletions REFERENCE.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ start on boot and will be restarted if stopped.

#### Public Defined types

* [`icinga2::config::fragment`](#icinga2configfragment): Set a code fragment in a target configuration file.
* [`icinga2::config::fragment`](#icinga2configfragment): Set a code fragment in a target configuration file. It's not possible to add a fragment to an object.
* [`icinga2::object::apiuser`](#icinga2objectapiuser): Manage Icinga 2 ApiUser objects.
* [`icinga2::object::checkcommand`](#icinga2objectcheckcommand): Manage Icinga 2 Host objects.
* [`icinga2::object::checkresultreader`](#icinga2objectcheckresultreader): Manage Icinga 2 CheckResultReader objects.
Expand Down Expand Up @@ -2748,19 +2748,19 @@ Default value: `$facts['networking']['fqdn']`

Data type: `Array[String]`

limits the response to objects of these environments
limits the response to objects of these environments if set, all environments if list is empty

Default value: `[$environment]`

## Defined types

### <a name="icinga2configfragment"></a>`icinga2::config::fragment`

Set a code fragment in a target configuration file.
Set a code fragment in a target configuration file. It's not possible to add a fragment to an object.

#### Examples

##### To create a custom configuration add content to a specified target at the position you set in the order parameter. You can use also templates to add content.
##### To create a custom configuration add content to a specified target at the position you set in the order parameter.

```puppet
include ::icinga2
Expand All @@ -2769,21 +2769,27 @@ icinga2::object::service { 'load':
display_name => 'Load',
apply => true,
check_command => 'load',
vars => {
load_wload1 => 'dynamic_threshold(backup, 20, 5)',
load_cload1 => 'dynamic_threshold(backup, 40, 10)',
},
assign => ['vars.os == Linux'],
target => '/etc/icinga2/conf.d/service_load.conf',
target => '/etc/icinga2/example.d/services.conf',
order => 30,
}
icinga2::config::fragment { 'load-function':
target => '/etc/icinga2/conf.d/service_load.conf',
order => 10,
content => 'vars.load_wload1 = {{
if (get_time_period("backup").is_inside) {
return 20
target => '/etc/icinga2/example.d/services.conf',
order => 10,
content => "globals.dynamic_threshold = function(timeperiod, ivalue, ovalue) {
return function() use (timeperiod, ivalue, ovalue) {
if (get_time_period(timeperiod).is_inside) {
return ivalue
} else {
return 5
return ovalue
}
}}',
}
}\n",
}
```

Expand Down
2 changes: 1 addition & 1 deletion metadata.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "icinga-icinga2",
"version": "3.6.0",
"version": "3.6.1",
"author": "Icinga Development Team",
"summary": "Icinga 2 Puppet Module",
"license": "Apache-2.0",
Expand Down

0 comments on commit d6d842d

Please sign in to comment.