Skip to content

Commit

Permalink
Add puppet4 datatypes
Browse files Browse the repository at this point in the history
  • Loading branch information
viq committed Oct 18, 2017
1 parent b34fd46 commit bb48133
Showing 1 changed file with 23 additions and 23 deletions.
46 changes: 23 additions & 23 deletions manifests/nginx_vts_exporter.pp
Original file line number Diff line number Diff line change
Expand Up @@ -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}")
Expand Down

0 comments on commit bb48133

Please sign in to comment.