diff --git a/manifests/nginx_vts_exporter.pp b/manifests/nginx_vts_exporter.pp index edbf1c186..eecc79ea0 100644 --- a/manifests/nginx_vts_exporter.pp +++ b/manifests/nginx_vts_exporter.pp @@ -72,29 +72,29 @@ # [*version*] # The binary release version class prometheus::nginx_vts_exporter( - $arch = $::prometheus::params::arch, - $bin_dir = $::prometheus::params::bin_dir, - $nginx_scrape_uri = $::prometheus::params::nginx_vts_exporter_nginx_scrape_uri, - $download_extension = $::prometheus::params::nginx_vts_exporter_download_extension, - $download_url = undef, - $download_url_base = $::prometheus::params::nginx_vts_exporter_download_url_base, - $extra_groups = $::prometheus::params::nginx_vts_exporter_extra_groups, - $extra_options = '', - $group = $::prometheus::params::nginx_vts_exporter_group, - $init_style = $::prometheus::params::init_style, - $install_method = $::prometheus::params::install_method, - $manage_group = true, - $manage_service = true, - $manage_user = true, - $os = $::prometheus::params::os, - $package_ensure = $::prometheus::params::nginx_vts_exporter_package_ensure, - $package_name = $::prometheus::params::nginx_vts_exporter_package_name, - $purge_config_dir = true, - $restart_on_change = true, - $service_enable = true, - $service_ensure = 'running', - $user = $::prometheus::params::nginx_vts_exporter_user, - $version = $::prometheus::params::nginx_vts_exporter_version, + String $arch = $::prometheus::params::arch, + String $bin_dir = $::prometheus::params::bin_dir, + String $nginx_scrape_uri = $::prometheus::params::nginx_vts_exporter_nginx_scrape_uri, + String $download_extension = $::prometheus::params::nginx_vts_exporter_download_extension, + Variant[Undef,String] $download_url = undef, + String $download_url_base = $::prometheus::params::nginx_vts_exporter_download_url_base, + Array $extra_groups = $::prometheus::params::nginx_vts_exporter_extra_groups, + String $extra_options = '', + String $group = $::prometheus::params::nginx_vts_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::nginx_vts_exporter_package_ensure, + String $package_name = $::prometheus::params::nginx_vts_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::nginx_vts_exporter_user, + String $version = $::prometheus::params::nginx_vts_exporter_version, ) inherits prometheus::params { $real_download_url = pick($download_url,"${download_url_base}/download/v${version}/${package_name}-${version}.${os}-${arch}.${download_extension}")