diff --git a/REFERENCE.md b/REFERENCE.md index 20d464b2..754c9342 100644 --- a/REFERENCE.md +++ b/REFERENCE.md @@ -1705,34 +1705,44 @@ Default value: `$prometheus::bin_dir` ##### `config` -Data type: `String[1]` +Data type: `Stdlib::Absolutepath` Path to configuration file that stores beanstalkd address +Default value: `'/etc/beanstalkd-exporter.conf'` + ##### `mapping_config` -Data type: `String[1]` +Data type: `Stdlib::Absolutepath` Path to configuration file with tubes mappings (not implemented) +Default value: `'/etc/beanstalkd-exporter-mapping.conf'` + ##### `beanstalkd_address` Data type: `String[1]` Address of beanstalkd, defaults to localhost +Default value: `'127.0.0.1:11300'` + ##### `exporter_listen` Data type: `String[1]` Address to bind beanstalkd_exporter to. Default is different than upstream (*:9371) +Default value: `':9371'` + ##### `download_extension` -Data type: `String` +Data type: `String[0]` Extension for the release binary archive +Default value: `''` + ##### `download_url` Data type: `Variant[Undef,String]` @@ -1747,12 +1757,16 @@ Data type: `Prometheus::Uri` Base URL for the binary archive +Default value: `'https://github.com/messagebird/beanstalkd_exporter/releases'` + ##### `extra_groups` Data type: `Array` Extra groups to add the binary user to +Default value: `[]` + ##### `extra_options` Data type: `Optional[String[1]]` @@ -1767,6 +1781,8 @@ Data type: `String[1]` Group under which the binary is running +Default value: `'beanstalkd-exporter'` + ##### `init_style` Data type: `Prometheus::Initstyle` @@ -1821,12 +1837,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: `'beanstalkd_exporter'` + ##### `purge_config_dir` Data type: `Boolean` @@ -1865,12 +1885,16 @@ Data type: `String[1]` Name of the beanstalkd exporter service (default 'beanstalkd_exporter') +Default value: `'beanstalkd_exporter'` + ##### `user` Data type: `String[1]` User which runs the service +Default value: `'beanstalkd-exporter'` + ##### `version` Data type: `String[1]` diff --git a/data/defaults.yaml b/data/defaults.yaml index 6f5abba8..7146ecc4 100644 --- a/data/defaults.yaml +++ b/data/defaults.yaml @@ -156,15 +156,3 @@ prometheus::node_exporter::group: 'node-exporter' prometheus::node_exporter::package_ensure: 'latest' prometheus::node_exporter::package_name: 'node_exporter' prometheus::node_exporter::user: 'node-exporter' -prometheus::beanstalkd_exporter::exporter_listen: ':9371' -prometheus::beanstalkd_exporter::beanstalkd_address: '127.0.0.1:11300' -prometheus::beanstalkd_exporter::download_extension: '' -prometheus::beanstalkd_exporter::download_url_base: 'https://github.com/messagebird/beanstalkd_exporter/releases' -prometheus::beanstalkd_exporter::extra_groups: [] -prometheus::beanstalkd_exporter::group: 'beanstalkd-exporter' -prometheus::beanstalkd_exporter::package_ensure: 'latest' -prometheus::beanstalkd_exporter::package_name: 'beanstalkd_exporter' -prometheus::beanstalkd_exporter::service_name: 'beanstalkd_exporter' -prometheus::beanstalkd_exporter::user: 'beanstalkd-exporter' -prometheus::beanstalkd_exporter::mapping_config: '/etc/beanstalkd-exporter-mapping.conf' -prometheus::beanstalkd_exporter::config: '/etc/beanstalkd-exporter.conf' diff --git a/manifests/beanstalkd_exporter.pp b/manifests/beanstalkd_exporter.pp index fa234584..2e4d5634 100644 --- a/manifests/beanstalkd_exporter.pp +++ b/manifests/beanstalkd_exporter.pp @@ -58,18 +58,18 @@ # @param proxy_type # Optional proxy server type (none|http|https|ftp) class prometheus::beanstalkd_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, - String[1] $config, - String[1] $mapping_config, - String[1] $beanstalkd_address, - String[1] $exporter_listen, + String[0] $download_extension = '', # lint:ignore:params_empty_string_assignment + Prometheus::Uri $download_url_base = 'https://github.com/messagebird/beanstalkd_exporter/releases', + Array $extra_groups = [], + String[1] $group = 'beanstalkd-exporter', + String[1] $package_ensure = 'latest', + String[1] $package_name = 'beanstalkd_exporter', + String[1] $service_name = 'beanstalkd_exporter', + String[1] $user = 'beanstalkd-exporter', + Stdlib::Absolutepath $config = '/etc/beanstalkd-exporter.conf', + Stdlib::Absolutepath $mapping_config = '/etc/beanstalkd-exporter-mapping.conf', + String[1] $beanstalkd_address = '127.0.0.1:11300', + String[1] $exporter_listen = ':9371', # renovate: depName=messagebird/beanstalkd_exporter String[1] $version = '1.0.5', Boolean $purge_config_dir = true,