Skip to content

Commit

Permalink
*fix* add puppet param types to all blackbox_exporter params
Browse files Browse the repository at this point in the history
  • Loading branch information
bramblek1 committed Oct 23, 2017
1 parent 0cd0817 commit 63fa492
Showing 1 changed file with 26 additions and 27 deletions.
53 changes: 26 additions & 27 deletions manifests/blackbox_exporter.pp
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,7 @@
# Whether to create user or rely on external code for that
#
# [*modules*]
# Structured, hash of blackbox module definitions for different probe types, converted
# to yaml for blackbox config file
# Structured, array of blackbox module definitions for different probe types
#
# [*os*]
# Operating system (linux is the only one supported)
Expand Down Expand Up @@ -90,31 +89,31 @@
# prober: tcp
# preferred_ip_protocol: ip4
class prometheus::blackbox_exporter (
Hash $modules = {},
$arch = $::prometheus::params::arch,
$bin_dir = $::prometheus::params::bin_dir,
$config_file = $::prometheus::params::blackbox_exporter_config_file,
$config_mode = $::prometheus::params::config_mode,
$download_extension = $::prometheus::params::blackbox_exporter_download_extension,
$download_url = undef,
$download_url_base = $::prometheus::params::blackbox_exporter_download_url_base,
$extra_groups = $::prometheus::params::blackbox_exporter_extra_groups,
$extra_options = '',
$group = $::prometheus::params::blackbox_exporter_group,
$init_style = $::prometheus::params::init_style,
$install_method = $::prometheus::params::install_method,
Boolean $manage_group = true,
Boolean $manage_service = true,
Boolean $manage_user = true,
$os = $::prometheus::params::os,
$package_ensure = $::prometheus::params::blackbox_exporter_package_ensure,
$package_name = $::prometheus::params::blackbox_exporter_package_name,
Boolean $restart_on_change = true,
Boolean $service_enable = true,
$service_ensure = 'running',
$service_name = 'blackbox_exporter',
$user = $::prometheus::params::blackbox_exporter_user,
$version = $::prometheus::params::blackbox_exporter_version,
Hash $modules = {},
String $arch = $::prometheus::params::arch,
String $bin_dir = $::prometheus::params::bin_dir,
String $config_file = $::prometheus::params::blackbox_exporter_config_file,
String $config_mode = $::prometheus::params::config_mode,
String $download_extension = $::prometheus::params::blackbox_exporter_download_extension,
Variant[Undef,String] $download_url = undef,
String $download_url_base = $::prometheus::params::blackbox_exporter_download_url_base,
Array[String] $extra_groups = $::prometheus::params::blackbox_exporter_extra_groups,
String $extra_options = '',
String $group = $::prometheus::params::blackbox_exporter_group,
String $init_style = $::prometheus::params::init_style,
String $install_method = $::prometheus::params::install_method,
Boolean $manage_group = true,
Boolean $manage_service = true,
Boolean $manage_user = true,
String $os = $::prometheus::params::os,
String $package_ensure = $::prometheus::params::blackbox_exporter_package_ensure,
String $package_name = $::prometheus::params::blackbox_exporter_package_name,
Boolean $restart_on_change = true,
Boolean $service_enable = true,
String $service_ensure = 'running',
String $service_name = 'blackbox_exporter',
String $user = $::prometheus::params::blackbox_exporter_user,
String $version = $::prometheus::params::blackbox_exporter_version,
) inherits prometheus::params {
# Prometheus added a 'v' on the release name at 0.1.0 of blackbox
if versioncmp ($version, '0.1.0') >= 0 {
Expand Down

0 comments on commit 63fa492

Please sign in to comment.