Skip to content

Commit

Permalink
process_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 e06aed6 commit eb8a469
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 18 deletions.
18 changes: 18 additions & 0 deletions REFERENCE.md
Original file line number Diff line number Diff line change
Expand Up @@ -9861,6 +9861,8 @@ Data type: `String`

Extension for the release binary archive

Default value: `'tar.gz'`

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

Data type: `Optional[Prometheus::Uri]`
Expand All @@ -9875,12 +9877,16 @@ Data type: `Prometheus::Uri`

Base URL for the binary archive

Default value: `'https://github.com/ncabatoff/process-exporter/releases'`

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

Data type: `Array`

Extra groups to add the binary user to

Default value: `[]`

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

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

Group under which the binary is running

Default value: `'process-exporter'`

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

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

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

Default value: `'latest'`

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

Data type: `String[1]`

The binary package name - not available yet

Default value: `'process-exporter'`

##### <a name="-prometheus--process_exporter--purge_config_dir"></a>`purge_config_dir`

Data type: `Boolean`
Expand Down Expand Up @@ -9993,12 +10005,16 @@ Data type: `String[1]`

Name of the process exporter service (default 'process-exporter')

Default value: `'process-exporter'`

##### <a name="-prometheus--process_exporter--user"></a>`user`

Data type: `String[1]`

User which runs the service

Default value: `'process-exporter'`

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

Data type: `String[1]`
Expand Down Expand Up @@ -10047,6 +10063,8 @@ Data type: `Stdlib::Absolutepath`



Default value: `'/etc/process-exporter.yaml'`

##### <a name="-prometheus--process_exporter--config_mode"></a>`config_mode`

Data type: `String[1]`
Expand Down
9 changes: 0 additions & 9 deletions data/defaults.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -107,15 +107,6 @@ prometheus::nginx_vts_exporter::package_ensure: 'latest'
prometheus::nginx_vts_exporter::package_name: 'nginx-vts-exporter'
prometheus::nginx_vts_exporter::service_name: 'nginx-vts-exporter'
prometheus::nginx_vts_exporter::user: 'nginx-vts-exporter'
prometheus::process_exporter::download_extension: 'tar.gz'
prometheus::process_exporter::download_url_base: 'https://github.com/ncabatoff/process-exporter/releases'
prometheus::process_exporter::extra_groups: []
prometheus::process_exporter::group: 'process-exporter'
prometheus::process_exporter::package_ensure: 'latest'
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::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
18 changes: 9 additions & 9 deletions manifests/process_exporter.pp
Original file line number Diff line number Diff line change
Expand Up @@ -75,15 +75,15 @@
# ]
# }
class prometheus::process_exporter (
String $download_extension,
Prometheus::Uri $download_url_base,
Array $extra_groups,
String[1] $group,
String[1] $package_ensure,
String[1] $package_name,
String[1] $service_name,
String[1] $user,
Stdlib::Absolutepath $config_path,
String $download_extension = 'tar.gz',
Prometheus::Uri $download_url_base = 'https://github.com/ncabatoff/process-exporter/releases',
Array $extra_groups = [],
String[1] $group = 'process-exporter',
String[1] $package_ensure = 'latest',
String[1] $package_name = 'process-exporter',
String[1] $service_name = 'process-exporter',
String[1] $user = 'process-exporter',
Stdlib::Absolutepath $config_path = '/etc/process-exporter.yaml',
# renovate: depName=ncabatoff/process-exporter
String[1] $version = '0.8.2',
Array $watched_processes = [],
Expand Down

0 comments on commit eb8a469

Please sign in to comment.