Skip to content

Commit

Permalink
pushgateway_exporter: Move data from hiera to puppet class
Browse files Browse the repository at this point in the history
  • Loading branch information
bastelfreak committed Jan 2, 2025
1 parent 8c0b8a0 commit e06aed6
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 14 deletions.
14 changes: 14 additions & 0 deletions REFERENCE.md
Original file line number Diff line number Diff line change
Expand Up @@ -10447,6 +10447,8 @@ Data type: `String[1]`

Extension for the release binary archive

Default value: `'tar.gz'`

##### <a name="-prometheus--pushgateway--download_url"></a>`download_url`

Data type: `Optional[String]`
Expand All @@ -10461,12 +10463,16 @@ Data type: `String[1]`

Base URL for the binary archive

Default value: `'https://github.com/prometheus/pushgateway/releases'`

##### <a name="-prometheus--pushgateway--extra_groups"></a>`extra_groups`

Data type: `Array`

Extra groups to add the binary user to

Default value: `[]`

##### <a name="-prometheus--pushgateway--extra_options"></a>`extra_options`

Data type: `Optional[String[1]]`
Expand All @@ -10481,6 +10487,8 @@ Data type: `String[1]`

Group under which the binary is running

Default value: `'pushgateway'`

##### <a name="-prometheus--pushgateway--init_style"></a>`init_style`

Data type: `Prometheus::Initstyle`
Expand Down Expand Up @@ -10535,12 +10543,16 @@ Data type: `String[1]`

If package, then use this for package ensure default 'latest'

Default value: `'latest'`

##### <a name="-prometheus--pushgateway--package_name"></a>`package_name`

Data type: `String[1]`

The binary package name - not available yet

Default value: `'pushgateway'`

##### <a name="-prometheus--pushgateway--restart_on_change"></a>`restart_on_change`

Data type: `Boolean`
Expand Down Expand Up @@ -10579,6 +10591,8 @@ Data type: `String[1]`

User which runs the service

Default value: `'pushgateway'`

##### <a name="-prometheus--pushgateway--version"></a>`version`

Data type: `String[1]`
Expand Down
7 changes: 0 additions & 7 deletions data/defaults.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -116,13 +116,6 @@ prometheus::process_exporter::package_name: 'process-exporter'
prometheus::process_exporter::service_name: 'process-exporter'
prometheus::process_exporter::user: 'process-exporter'
prometheus::process_exporter::config_path: '/etc/process-exporter.yaml'
prometheus::pushgateway::download_extension: 'tar.gz'
prometheus::pushgateway::download_url_base: 'https://github.com/prometheus/pushgateway/releases'
prometheus::pushgateway::extra_groups: []
prometheus::pushgateway::group: 'pushgateway'
prometheus::pushgateway::package_ensure: 'latest'
prometheus::pushgateway::package_name: 'pushgateway'
prometheus::pushgateway::user: 'pushgateway'
prometheus::rabbitmq_exporter::download_extension: 'tar.gz'
prometheus::rabbitmq_exporter::download_url_base: 'https://github.com/kbudde/rabbitmq_exporter/releases'
prometheus::rabbitmq_exporter::extra_groups: []
Expand Down
14 changes: 7 additions & 7 deletions manifests/pushgateway.pp
Original file line number Diff line number Diff line change
Expand Up @@ -48,13 +48,13 @@
# @param proxy_type
# Optional proxy server type (none|http|https|ftp)
class prometheus::pushgateway (
String[1] $download_extension,
String[1] $download_url_base,
Array $extra_groups,
String[1] $group,
String[1] $package_ensure,
String[1] $package_name,
String[1] $user,
String[1] $download_extension = 'tar.gz',
String[1] $download_url_base = 'https://github.com/prometheus/pushgateway/releases',
Array $extra_groups = [],
String[1] $group = 'pushgateway',
String[1] $package_ensure = 'latest',
String[1] $package_name = 'pushgateway',
String[1] $user = 'pushgateway',
# renovate: depName=prometheus/pushgateway
String[1] $version = '1.9.0',
Boolean $restart_on_change = true,
Expand Down

0 comments on commit e06aed6

Please sign in to comment.