Skip to content

Commit

Permalink
fix #456 Rework param datatypes of icinga2::feature::gelf
Browse files Browse the repository at this point in the history
  • Loading branch information
lbetz committed Sep 14, 2018
1 parent 69ea062 commit c87abf7
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 13 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -1231,16 +1231,16 @@ Enables or disables the `gelf` feature.
Either `present` or `absent`. Defines if the feature `gelf` should be enabled. Defaults to `present`.

##### `host`
GELF receiver host address. Defaults to `127.0.0.1`
GELF receiver host address. Icinga defaults to `127.0.0.1`

##### `port`
GELF receiver port. Defaults to `12201`
GELF receiver port. Icinga defaults to `12201`

##### `source`
Source name for this instance. Defaults to `icinga2`
Source name for this instance. Icinga defaults to `icinga2`

##### `enable_send_perfdata`
Enable performance data for *CHECK RESULT* events. Defaults to `false`.
Enable performance data for *CHECK RESULT* events. Icinga defaults to `false`.

#### Class: `icinga2::feature::influxdb`
Enables or disables the `influxdb` feature.
Expand Down
18 changes: 9 additions & 9 deletions manifests/feature/gelf.pp
Original file line number Diff line number Diff line change
Expand Up @@ -8,24 +8,24 @@
# Set to present enables the feature gelf, absent disables it. Defaults to present.
#
# [*host*]
# GELF receiver host address. Defaults to '127.0.0.1'.
# GELF receiver host address. Icinga defaults to '127.0.0.1'.
#
# [*port*]
# GELF receiver port. Defaults to 12201.
# GELF receiver port. Icinga defaults to '12201'.
#
# [*source*]
# Source name for this instance. Defaults to icinga2.
# Source name for this instance. Icinga defaults to 'icinga2'.
#
# [*enable_send_perfdata*]
# Enable performance data for 'CHECK RESULT' events. Defaults to false.
# Enable performance data for 'CHECK RESULT' events. Icinga defaults to false.
#
#
class icinga2::feature::gelf(
Enum['absent', 'present'] $ensure = present,
String $host = '127.0.0.1',
Integer[1,65535] $port = 12201,
String $source = 'icinga2',
Boolean $enable_send_perfdata = false,
Enum['absent', 'present'] $ensure = present,
Optional[String] $host = undef,
Optional[Integer[1,65535]] $port = undef,
Optional[String] $source = undef,
Optional[Boolean] $enable_send_perfdata = undef,
) {

if ! defined(Class['::icinga2']) {
Expand Down

0 comments on commit c87abf7

Please sign in to comment.