diff --git a/REFERENCE.md b/REFERENCE.md index eda92037..3b479fc1 100644 --- a/REFERENCE.md +++ b/REFERENCE.md @@ -9861,6 +9861,8 @@ Data type: `String` Extension for the release binary archive +Default value: `'tar.gz'` + ##### `download_url` Data type: `Optional[Prometheus::Uri]` @@ -9875,12 +9877,16 @@ Data type: `Prometheus::Uri` Base URL for the binary archive +Default value: `'https://github.com/ncabatoff/process-exporter/releases'` + ##### `extra_groups` Data type: `Array` Extra groups to add the binary user to +Default value: `[]` + ##### `extra_options` Data type: `Optional[String[1]]` @@ -9895,6 +9901,8 @@ Data type: `String[1]` Group under which the binary is running +Default value: `'process-exporter'` + ##### `init_style` Data type: `Prometheus::Initstyle` @@ -9949,12 +9957,16 @@ Data type: `String[1]` If package, then use this for package ensure default 'latest' +Default value: `'latest'` + ##### `package_name` Data type: `String[1]` The binary package name - not available yet +Default value: `'process-exporter'` + ##### `purge_config_dir` Data type: `Boolean` @@ -9993,12 +10005,16 @@ Data type: `String[1]` Name of the process exporter service (default 'process-exporter') +Default value: `'process-exporter'` + ##### `user` Data type: `String[1]` User which runs the service +Default value: `'process-exporter'` + ##### `version` Data type: `String[1]` @@ -10047,6 +10063,8 @@ Data type: `Stdlib::Absolutepath` +Default value: `'/etc/process-exporter.yaml'` + ##### `config_mode` Data type: `String[1]` diff --git a/data/defaults.yaml b/data/defaults.yaml index 243f63c6..8fa9f1e2 100644 --- a/data/defaults.yaml +++ b/data/defaults.yaml @@ -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: [] diff --git a/manifests/process_exporter.pp b/manifests/process_exporter.pp index c36ac9ca..205db33a 100644 --- a/manifests/process_exporter.pp +++ b/manifests/process_exporter.pp @@ -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 = [],