Skip to content

Commit

Permalink
mysql_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 b71f101 commit 8c0b8a0
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 @@ -7061,6 +7061,8 @@ Data type: `String`

Extension for the release binary archive

Default value: `'tar.gz'`

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

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

Base URL for the binary archive

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

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

Data type: `Array`

Extra groups to add the binary user to

Default value: `[]`

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

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

Group under which the binary is running

Default value: `'mysqld-exporter'`

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

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

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

Default value: `'latest'`

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

Data type: `String[1]`

The binary package name - not available yet

Default value: `'mysqld_exporter'`

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

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

User which runs the service

Default value: `'mysqld-exporter'`

##### <a name="-prometheus--mysqld_exporter--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 @@ -142,10 +142,3 @@ prometheus::rabbitmq_exporter::rabbit_exporters:
- 'node'
- 'overview'
- 'queue'
prometheus::mysqld_exporter::download_extension: 'tar.gz'
prometheus::mysqld_exporter::download_url_base: 'https://github.com/prometheus/mysqld_exporter/releases'
prometheus::mysqld_exporter::extra_groups: []
prometheus::mysqld_exporter::group: 'mysqld-exporter'
prometheus::mysqld_exporter::package_ensure: 'latest'
prometheus::mysqld_exporter::package_name: 'mysqld_exporter'
prometheus::mysqld_exporter::user: 'mysqld-exporter'
14 changes: 7 additions & 7 deletions manifests/mysqld_exporter.pp
Original file line number Diff line number Diff line change
Expand Up @@ -75,13 +75,13 @@
# @param cnf_ssl_key
# The path name of the client SSL private key file in PEM format.
class prometheus::mysqld_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] $user,
String $download_extension = 'tar.gz',
Prometheus::Uri $download_url_base = 'https://github.com/prometheus/mysqld_exporter/releases',
Array $extra_groups = [],
String[1] $group = 'mysqld-exporter',
String[1] $package_ensure = 'latest',
String[1] $package_name = 'mysqld_exporter',
String[1] $user = 'mysqld-exporter',
# renovate: depName=prometheus/mysqld_exporter
String[1] $version = '0.15.1',
String[1] $service_name = 'mysqld_exporter',
Expand Down

0 comments on commit 8c0b8a0

Please sign in to comment.