diff --git a/README.md b/README.md index 8ea2465e6..060f22bb5 100644 --- a/README.md +++ b/README.md @@ -1181,6 +1181,10 @@ OpenTSDB host address. Icinga defaults to `127.0.0.1` ##### `port` OpenTSDB port. Icinga defaults to `4242` +##### `enable_ha` +Enable the high availability functionality. Only valid in a cluster setup. Icinga defaults to false. + + #### Class: `icinga2::feature::perfdata` Enables or disables the `perfdata` feature. @@ -1219,6 +1223,10 @@ Service Format template for the performance data file. Icinga defaults to a temp Rotation interval for the files specified in `{host,service}_perfdata_path`. Can be written in minutes or seconds, i.e. `1m` or `15s`. Icinga defaults to `30s` +##### `enable_ha` +Enable the high availability functionality. Only valid in a cluster setup. Icinga defaults to false. + + #### Class: `icinga2::feature::statusdata` Enables or disables the `statusdata` feature. The feature is deprecated and will be removed in Icinga 2 2.11.0. @@ -1341,6 +1349,9 @@ How long to buffer data points before transferring to Elasticsearch. Icinga defa ##### `flush_threshold` How many data points to buffer before forcing a transfer to Elasticsearch. Icinga defaults to `1024` +##### `enable_ha` +Enable the high availability functionality. Only valid in a cluster setup. Icinga defaults to false. + #### Class: `icinga2::feature::gelf` Enables or disables the `gelf` feature. @@ -1362,6 +1373,10 @@ Source name for this instance. Icinga defaults to `icinga2` ##### `enable_send_perfdata` Enable performance data for *CHECK RESULT* events. Icinga defaults to `false`. +##### `enable_ha` +Enable the high availability functionality. Only valid in a cluster setup. Icinga defaults to false. + + #### Class: `icinga2::feature::influxdb` Enables or disables the `influxdb` feature. @@ -1435,6 +1450,9 @@ How long to buffer data points before transferring to InfluxDB. Icinga defaults ##### `flush_threshold` How many data points to buffer before forcing a transfer to InfluxDB. Icinga defaults to `1024`. +##### `enable_ha` +Enable the high availability functionality. Only valid in a cluster setup. Icinga defaults to false. + #### Class: `icinga2::feature::api` Enables or disables the `api` feature. diff --git a/manifests/feature/elasticsearch.pp b/manifests/feature/elasticsearch.pp index 4459f4c5a..49c88be0f 100644 --- a/manifests/feature/elasticsearch.pp +++ b/manifests/feature/elasticsearch.pp @@ -54,13 +54,16 @@ # C:/ProgramData/icinga2/var/lib/icinga2/certs/ElasticsearchWriter_elasticsearch_ca.crt on Windows # # [*enable_send_perfdata*] -# Whether to send check performance data metrics. Icinga defaults to 'false'. +# Whether to send check performance data metrics. Icinga defaults to 'false'. # # [*flush_interval*] -# How long to buffer data points before transferring to Elasticsearch. Icinga defaults to '10s'. +# How long to buffer data points before transferring to Elasticsearch. Icinga defaults to '10s'. # # [*flush_threshold*] -# How many data points to buffer before forcing a transfer to Elasticsearch. Icinga defaults to '1024'. +# How many data points to buffer before forcing a transfer to Elasticsearch. Icinga defaults to '1024'. +# +# [*enable_ha*] +# Enable the high availability functionality. Only valid in a cluster setup. Icinga defaults to false. # # === Example # @@ -87,6 +90,7 @@ Optional[Boolean] $enable_send_perfdata = undef, Optional[Icinga2::Interval] $flush_interval = undef, Optional[Integer] $flush_threshold = undef, + Optional[Boolean] $enable_ha = undef, ) { if ! defined(Class['::icinga2']) { @@ -199,6 +203,7 @@ enable_send_perfdata => $enable_send_perfdata, flush_interval => $flush_interval, flush_threshold => $flush_threshold, + enable_ha => $enable_ha, } # create object diff --git a/manifests/feature/gelf.pp b/manifests/feature/gelf.pp index 4ee6048d7..61d2ef014 100644 --- a/manifests/feature/gelf.pp +++ b/manifests/feature/gelf.pp @@ -19,6 +19,9 @@ # [*enable_send_perfdata*] # Enable performance data for 'CHECK RESULT' events. Icinga defaults to false. # +# [*enable_ha*] +# Enable the high availability functionality. Only valid in a cluster setup. Icinga defaults to false. +# # class icinga2::feature::gelf( Enum['absent', 'present'] $ensure = present, @@ -26,6 +29,7 @@ Optional[Stdlib::Port::Unprivileged] $port = undef, Optional[String] $source = undef, Optional[Boolean] $enable_send_perfdata = undef, + Optional[Boolean] $enable_ha = undef, ) { if ! defined(Class['::icinga2']) { @@ -44,6 +48,7 @@ port => $port, source => $source, enable_send_perfdata => $enable_send_perfdata, + enable_ha => $enable_ha, } # create object diff --git a/manifests/feature/graphite.pp b/manifests/feature/graphite.pp index 8bc5f77df..d7df06edf 100644 --- a/manifests/feature/graphite.pp +++ b/manifests/feature/graphite.pp @@ -27,6 +27,9 @@ # [*enable_send_metadata*] # Send metadata as metrics. Icinga defaults to false. # +# [*enable_ha*] +# Enable the high availability functionality. Only valid in a cluster setup. Icinga defaults to false. +# # class icinga2::feature::graphite( Enum['absent', 'present'] $ensure = present, @@ -36,6 +39,7 @@ Optional[String] $service_name_template = undef, Optional[Boolean] $enable_send_thresholds = undef, Optional[Boolean] $enable_send_metadata = undef, + Optional[Boolean] $enable_ha = undef, ) { if ! defined(Class['::icinga2']) { @@ -56,6 +60,7 @@ service_name_template => $service_name_template, enable_send_thresholds => $enable_send_thresholds, enable_send_metadata => $enable_send_metadata, + enable_ha => $enable_ha, } # create object diff --git a/manifests/feature/influxdb.pp b/manifests/feature/influxdb.pp index 2597e29fd..600ce99db 100644 --- a/manifests/feature/influxdb.pp +++ b/manifests/feature/influxdb.pp @@ -77,6 +77,10 @@ # [*flush_threshold*] # How many data points to buffer before forcing a transfer to InfluxDB. Icinga defaults to '1024'. # +# # [*enable_ha*] +# Enable the high availability functionality. Only valid in a cluster setup. Icinga defaults to false. +# +# # === Example # # class { 'icinga2::feature::influxdb': @@ -109,6 +113,7 @@ Optional[Boolean] $enable_send_metadata = undef, Optional[Icinga2::Interval] $flush_interval = undef, Optional[Integer[1]] $flush_threshold = undef, + Optional[Boolean] $enable_ha = undef, ) { if ! defined(Class['::icinga2']) { @@ -226,6 +231,7 @@ enable_send_metadata => $enable_send_metadata, flush_interval => $flush_interval, flush_threshold => $flush_threshold, + enable_ha => $enable_ha, } # create object diff --git a/manifests/feature/opentsdb.pp b/manifests/feature/opentsdb.pp index 86df62783..d6d76cc8d 100644 --- a/manifests/feature/opentsdb.pp +++ b/manifests/feature/opentsdb.pp @@ -13,11 +13,15 @@ # [*port*] # OpenTSDB port. Icinga defaults to 4242. # +# [*enable_ha*] +# Enable the high availability functionality. Only valid in a cluster setup. Icinga defaults to false. +# # class icinga2::feature::opentsdb( - Enum['absent', 'present'] $ensure = present, - Optional[Stdlib::Host] $host = undef, - Optional[Stdlib::Port::Unprivileged] $port = undef, + Enum['absent', 'present'] $ensure = present, + Optional[Stdlib::Host] $host = undef, + Optional[Stdlib::Port::Unprivileged] $port = undef, + Optional[Boolean] $enable_ha = undef, ) { if ! defined(Class['::icinga2']) { @@ -32,8 +36,9 @@ # compose attributes $attrs = { - host => $host, - port => $port, + host => $host, + port => $port, + enable_ha => $enable_ha, } # create object diff --git a/manifests/feature/perfdata.pp b/manifests/feature/perfdata.pp index a151175ff..e48734745 100644 --- a/manifests/feature/perfdata.pp +++ b/manifests/feature/perfdata.pp @@ -39,6 +39,9 @@ # Rotation interval for the files specified in {host,service}_perfdata_path. Can be written in minutes or seconds, # i.e. 1m or 15s. Icinga defaults to 30s. # +# [*enable_ha*] +# Enable the high availability functionality. Only valid in a cluster setup. Icinga defaults to false. +# # class icinga2::feature::perfdata( Enum['absent', 'present'] $ensure = present, @@ -49,6 +52,7 @@ Optional[String] $host_format_template = undef, Optional[String] $service_format_template = undef, Optional[Icinga2::Interval] $rotation_interval = undef, + Optional[Boolean] $enable_ha = undef, ) { if ! defined(Class['::icinga2']) { @@ -70,6 +74,7 @@ host_format_template => $host_format_template, service_format_template => $service_format_template, rotation_interval => $rotation_interval, + enable_ha => $enable_ha, } # create object