Puppet Class: thanos::tools::bucket_web
- Defined in:
- manifests/tools/bucket_web.pp
Summary
This class manages bucket web interface serviceOverview
This class install Web interface for remote storage bucket.
49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 |
# File 'manifests/tools/bucket_web.pp', line 49
class thanos::tools::bucket_web (
Enum['present', 'absent'] $ensure = 'present',
String $user = $thanos::user,
String $group = $thanos::group,
Stdlib::Absolutepath $bin_path = $thanos::bin_path,
# Binary Parameters
Thanos::Log_level $log_level = 'info',
Enum['logfmt', 'json'] $log_format = 'logfmt',
Optional[Stdlib::Absolutepath] $tracing_config_file = $thanos::tracing_config_file,
Optional[Stdlib::Absolutepath] $objstore_config_file = $thanos::storage_config_file,
String $http_address = '0.0.0.0:10902',
String $http_grace_period = '2m',
Optional[String] $web_external_prefix = undef,
Optional[String] $web_prefix_header = undef,
String $refresh = '30m',
String $timeout = '5m',
Optional[String] $label = undef,
Optional[Integer] $max_open_files = undef,
# Extra parametes
Hash $extra_params = {},
) {
$_service_ensure = $ensure ? {
'present' => 'running',
default => 'stopped'
}
thanos::resources::service { 'bucket-web':
ensure => $_service_ensure,
name => 'tools bucket web',
bin_path => $bin_path,
user => $user,
group => $group,
max_open_files => $max_open_files,
params => {
'log.level' => $log_level,
'log.format' => $log_format,
'tracing.config-file' => $tracing_config_file,
'objstore.config-file' => $objstore_config_file,
'http-address' => $http_address,
'http-grace-period' => $http_grace_period,
'web.external-prefix' => $web_external_prefix,
'web.prefix-header' => $web_prefix_header,
'refresh' => $refresh,
'timeout' => $timeout,
'label' => $label,
},
extra_params => $extra_params,
}
}
|