Skip to content

Commit

Permalink
add datatype to all parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
tahaalibra committed Nov 13, 2017
1 parent 9b7b22f commit 2af013c
Showing 1 changed file with 24 additions and 24 deletions.
48 changes: 24 additions & 24 deletions manifests/mesos_exporter.pp
Original file line number Diff line number Diff line change
Expand Up @@ -75,30 +75,30 @@
# [*version*]
# The binary release version
class prometheus::mesos_exporter (
$arch = $::prometheus::params::arch,
$bin_dir = $::prometheus::params::bin_dir,
$server_type = $::prometheus::params::mesos_exporter_server_type,
$cnf_scrape_uri = $::prometheus::params::mesos_exporter_cnf_scrape_uri,
$download_extension = $::prometheus::params::mesos_exporter_download_extension,
$download_url = undef,
$download_url_base = $::prometheus::params::mesos_exporter_download_url_base,
$extra_groups = $::prometheus::params::mesos_exporter_extra_groups,
$extra_options = '',
$group = $::prometheus::params::mesos_exporter_group,
$init_style = $::prometheus::params::init_style,
$install_method = $::prometheus::params::install_method,
$manage_group = true,
Boolean $manage_service = true,
Boolean $manage_user = true,
$os = $::prometheus::params::os,
$package_ensure = $::prometheus::params::mesos_exporter_package_ensure,
$package_name = $::prometheus::params::mesos_exporter_package_name,
Boolean $purge_config_dir = true,
Boolean $restart_on_change = true,
$service_enable = true,
$service_ensure = 'running',
$user = $::prometheus::params::mesos_exporter_user,
$version = $::prometheus::params::mesos_exporter_version,
String $arch = $::prometheus::params::arch,
String $bin_dir = $::prometheus::params::bin_dir,
String $server_type = $::prometheus::params::mesos_exporter_server_type,
String $cnf_scrape_uri = $::prometheus::params::mesos_exporter_cnf_scrape_uri,
String $download_extension = $::prometheus::params::mesos_exporter_download_extension,
Optional[String] $download_url = undef,
String $download_url_base = $::prometheus::params::mesos_exporter_download_url_base,
Array $extra_groups = $::prometheus::params::mesos_exporter_extra_groups,
String $extra_options = '',
String $group = $::prometheus::params::mesos_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::mesos_exporter_package_ensure,
String $package_name = $::prometheus::params::mesos_exporter_package_name,
Boolean $purge_config_dir = true,
Boolean $restart_on_change = true,
Boolean $service_enable = true,
String $service_ensure = 'running',
String $user = $::prometheus::params::mesos_exporter_user,
String $version = $::prometheus::params::mesos_exporter_version,
) inherits prometheus::params {
$real_download_url = pick($download_url,"${download_url_base}/download/v${version}/${package_name}-${version}.${os}-${arch}.${download_extension}")
$notify_service = $restart_on_change ? {
Expand Down

0 comments on commit 2af013c

Please sign in to comment.