Skip to content

Commit

Permalink
Merge pull request #507 from treydock/download_extension
Browse files Browse the repository at this point in the history
Allow download_extension to be empty string
  • Loading branch information
bastelfreak authored Dec 3, 2020
2 parents de9f1d4 + 32f9ae0 commit a66f416
Show file tree
Hide file tree
Showing 25 changed files with 67 additions and 49 deletions.
60 changes: 34 additions & 26 deletions REFERENCE.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ This can be used to make prometheus find instances of your running service or ap

### `prometheus`

This module manages prometheus.
This module manages prometheus

#### Parameters

Expand Down Expand Up @@ -1045,7 +1045,7 @@ Default value: `$prometheus::config_mode`

##### `download_extension`

Data type: `String[1]`
Data type: `String`

Extension for the release binary archive

Expand Down Expand Up @@ -1291,7 +1291,7 @@ Address to bind beanstalkd_exporter to. Default is different than upstream (*:93

##### `download_extension`

Data type: `String[1]`
Data type: `String`

Extension for the release binary archive

Expand Down Expand Up @@ -1674,6 +1674,14 @@ The binary release version

Default value: `'1.2.4'`

##### `env_vars`

Data type: `Hash[String[1], Scalar]`

hash with custom environment variables thats passed to the exporter via init script / unit file

Default value: `{}`

##### `export_scrape_job`

Data type: `Boolean`
Expand Down Expand Up @@ -1765,7 +1773,7 @@ Absolute path to configuration file (blackbox module definitions)

##### `download_extension`

Data type: `String[1]`
Data type: `String`

Extension for the release binary archive

Expand Down Expand Up @@ -1989,7 +1997,7 @@ Default value: `$prometheus::bin_dir`

##### `download_extension`

Data type: `String[1]`
Data type: `String`

Extension for the release binary archive

Expand Down Expand Up @@ -2211,7 +2219,7 @@ Generate a health summary for each service instance. Needs n+1 queries to collec

##### `download_extension`

Data type: `String[1]`
Data type: `String`

Extension for the release binary archive

Expand Down Expand Up @@ -2443,7 +2451,7 @@ Default value: `$prometheus::bin_dir`

##### `download_extension`

Data type: `String[1]`
Data type: `String`

Extension for the release binary archive

Expand Down Expand Up @@ -2711,7 +2719,7 @@ Timeout for trying to get stats from elasticsearch URI

##### `download_extension`

Data type: `String[1]`
Data type: `String`

Extension for the release binary archive

Expand Down Expand Up @@ -2933,7 +2941,7 @@ Default value: `$prometheus::bin_dir`

##### `download_extension`

Data type: `String[1]`
Data type: `String`

Extension for the release binary archive

Expand Down Expand Up @@ -3160,7 +3168,7 @@ Default value: `$prometheus::config_mode`

##### `download_extension`

Data type: `String[1]`
Data type: `String`

Extension for the release binary archive

Expand Down Expand Up @@ -3382,7 +3390,7 @@ The URI to obtain HAProxy stats from

##### `download_extension`

Data type: `String[1]`
Data type: `String`

Extension for the release binary archive

Expand Down Expand Up @@ -3603,7 +3611,7 @@ Default value: `$prometheus::bin_dir`

##### `download_extension`

Data type: `String[1]`
Data type: `String`

Extension for the release binary archive

Expand Down Expand Up @@ -3855,7 +3863,7 @@ The URI to obtain mesos stats from

##### `download_extension`

Data type: `String[1]`
Data type: `String`

Extension for the release binary archive

Expand Down Expand Up @@ -4075,7 +4083,7 @@ The URI to obtain MongoDB stats from

##### `download_extension`

Data type: `String[1]`
Data type: `String`

Extension for the release binary archive

Expand Down Expand Up @@ -4356,7 +4364,7 @@ Default value: `$prometheus::config_mode`

##### `download_extension`

Data type: `String[1]`
Data type: `String`

Extension for the release binary archive

Expand Down Expand Up @@ -4817,7 +4825,7 @@ Default value: `[]`

##### `download_extension`

Data type: `String[1]`
Data type: `String`

Extension for the release binary archive

Expand Down Expand Up @@ -5262,7 +5270,7 @@ Default value: `{}`

##### `download_extension`

Data type: `String[1]`
Data type: `String`

Extension for the release binary archive

Expand Down Expand Up @@ -5533,7 +5541,7 @@ Default value: `$prometheus::bin_dir`

##### `download_extension`

Data type: `String[1]`
Data type: `String`

Extension for the release binary archive

Expand Down Expand Up @@ -5778,7 +5786,7 @@ Default value: `$prometheus::bin_dir`

##### `download_extension`

Data type: `String[1]`
Data type: `String`

Extension for the release binary archive

Expand Down Expand Up @@ -6576,7 +6584,7 @@ Default value: `$prometheus::bin_dir`

##### `download_extension`

Data type: `String[1]`
Data type: `String`

Extension for the release binary archive

Expand Down Expand Up @@ -6849,7 +6857,7 @@ Array of address of one or more redis nodes. Defaults to redis://localhost:6379

##### `download_extension`

Data type: `String[1]`
Data type: `String`

Extension for the release binary archive

Expand Down Expand Up @@ -7491,7 +7499,7 @@ Configuration template to use. If empty, uses upstream config (default "")

##### `download_extension`

Data type: `String[1]`
Data type: `String`

Extension for the release binary archive

Expand Down Expand Up @@ -7713,7 +7721,7 @@ Default value: `$prometheus::config_mode`

##### `download_extension`

Data type: `String[1]`
Data type: `String`

Extension for the release binary archive

Expand Down Expand Up @@ -7944,7 +7952,7 @@ Default value: `$prometheus::bin_dir`

##### `download_extension`

Data type: `String[1]`
Data type: `String`

Extension for the release binary archive

Expand Down Expand Up @@ -8390,7 +8398,7 @@ Default value: `''`

##### `env_vars`

Data type: `Hash[String, Scalar]`
Data type: `Hash[String[1], Scalar]`



Expand Down Expand Up @@ -8504,7 +8512,7 @@ Alias of `Pattern[/^gs:\/\//]`

The Prometheus::Initstyle data type.

Alias of `Enum['sysv', 'redhat', 'systemd', 'sles', 'debian', 'launchd', 'upstart', 'none']`
Alias of `Enum['sysv', 'systemd', 'sles', 'launchd', 'upstart', 'none']`

### `Prometheus::Install`

Expand Down
2 changes: 1 addition & 1 deletion manifests/apache_exporter.pp
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
# The binary release version
class prometheus::apache_exporter (
String[1] $scrape_uri,
String[1] $download_extension,
String $download_extension,
Prometheus::Uri $download_url_base,
Array[String[1]] $extra_groups,
String[1] $group,
Expand Down
2 changes: 1 addition & 1 deletion manifests/beanstalkd_exporter.pp
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
# @param version
# The binary release version
class prometheus::beanstalkd_exporter (
String[1] $download_extension,
String $download_extension,
String[1] $download_url_base,
Array $extra_groups,
String[1] $group,
Expand Down
2 changes: 1 addition & 1 deletion manifests/blackbox_exporter.pp
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@
# preferred_ip_protocol: ip4
class prometheus::blackbox_exporter (
String[1] $config_file,
String[1] $download_extension,
String $download_extension,
String[1] $download_url_base,
Array[String] $extra_groups,
String[1] $group,
Expand Down
2 changes: 1 addition & 1 deletion manifests/collectd_exporter.pp
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
# @param version
# The binary release version
class prometheus::collectd_exporter (
String[1] $download_extension,
String $download_extension,
String[1] $download_url_base,
String[1] $group,
String[1] $package_ensure,
Expand Down
2 changes: 1 addition & 1 deletion manifests/consul_exporter.pp
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@
class prometheus::consul_exporter (
Boolean $consul_health_summary,
String[1] $consul_server,
String[1] $download_extension,
String $download_extension,
String[1] $download_url_base,
Array $extra_groups,
String[1] $group,
Expand Down
2 changes: 1 addition & 1 deletion manifests/dellhw_exporter.pp
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
# @param scrape_ipadress
# The ip address that the exporter will to listen to (default '')
class prometheus::dellhw_exporter (
String[1] $download_extension = 'tar.gz',
String $download_extension = 'tar.gz',
String[1] $download_url_base = 'https://github.com/galexrt/dellhw_exporter/releases',
Array[String] $extra_groups = [],
String[1] $group = 'dellhw-exporter',
Expand Down
2 changes: 1 addition & 1 deletion manifests/elasticsearch_exporter.pp
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
class prometheus::elasticsearch_exporter (
String[1] $cnf_uri,
String[1] $cnf_timeout,
String[1] $download_extension,
String $download_extension,
String[1] $download_url_base,
Array $extra_groups,
String[1] $group,
Expand Down
2 changes: 1 addition & 1 deletion manifests/graphite_exporter.pp
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
# @param version
# The binary release version
class prometheus::graphite_exporter (
String[1] $download_extension,
String $download_extension,
String[1] $download_url_base,
String[1] $group,
String[1] $package_ensure,
Expand Down
2 changes: 1 addition & 1 deletion manifests/grok_exporter.pp
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@
class prometheus::grok_exporter (
Hash $config,
String[1] $config_file,
String[1] $download_extension,
String $download_extension,
Prometheus::Uri $download_url_base,
Array[String[1]] $extra_groups,
String[1] $group,
Expand Down
2 changes: 1 addition & 1 deletion manifests/haproxy_exporter.pp
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
# The binary release version
class prometheus::haproxy_exporter (
Variant[Stdlib::HTTPUrl, Pattern[/unix:(?:\/.+)+/]] $cnf_scrape_uri,
String[1] $download_extension,
String $download_extension,
Array $extra_groups,
String[1] $group,
String[1] $package_ensure,
Expand Down
2 changes: 1 addition & 1 deletion manifests/memcached_exporter.pp
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
# @param version
# The binary release version
class prometheus::memcached_exporter (
String[1] $download_extension = 'tar.gz',
String $download_extension = 'tar.gz',
String[1] $download_url_base = 'https://github.com/prometheus/memcached_exporter/releases',
Array[String] $extra_groups = [],
String[1] $group = 'memcached-exporter',
Expand Down
2 changes: 1 addition & 1 deletion manifests/mesos_exporter.pp
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
class prometheus::mesos_exporter (
String[1] $server_type,
String[1] $cnf_scrape_uri,
String[1] $download_extension,
String $download_extension,
String[1] $download_url_base,
Array $extra_groups,
String[1] $group,
Expand Down
2 changes: 1 addition & 1 deletion manifests/mongodb_exporter.pp
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
# https://github.com/percona/mongodb_exporter/blob/v0.7.0/CHANGELOG.md
class prometheus::mongodb_exporter (
String[1] $cnf_uri,
String[1] $download_extension,
String $download_extension,
String[1] $download_url_base,
Array $extra_groups,
String[1] $group,
Expand Down
2 changes: 1 addition & 1 deletion manifests/mysqld_exporter.pp
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@
# @param version
# The binary release version
class prometheus::mysqld_exporter (
String[1] $download_extension,
String $download_extension,
Prometheus::Uri $download_url_base,
Array $extra_groups,
String[1] $group,
Expand Down
2 changes: 1 addition & 1 deletion manifests/node_exporter.pp
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@
# @param version
# The binary release version
class prometheus::node_exporter (
String[1] $download_extension,
String $download_extension,
String[1] $download_url_base,
Array[String] $extra_groups,
String[1] $group,
Expand Down
2 changes: 1 addition & 1 deletion manifests/postgres_exporter.pp
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@
# @param data_source_uri
# Uri on howto connect to the database
class prometheus::postgres_exporter (
String[1] $download_extension,
String $download_extension,
String[1] $download_url_base,
Array[String[1]] $extra_groups,
String[1] $group,
Expand Down
Loading

0 comments on commit a66f416

Please sign in to comment.