Puppet Class: profile::thanos::compact
- Defined in:
- modules/profile/manifests/thanos/compact.pp
Overview
SPDX-License-Identifier: Apache-2.0
2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 |
# File 'modules/profile/manifests/thanos/compact.pp', line 2
class profile::thanos::compact (
Stdlib::Fqdn $thanos_compact_host = lookup('profile::thanos::compact_host'),
Hash[String, String] $objstore_account = lookup('profile::thanos::objstore_account'),
String $objstore_password = lookup('profile::thanos::objstore_password'),
String $retention_raw = lookup('profile::thanos::retention::raw', { 'default_value' => '270w' }),
String $retention_5m = lookup('profile::thanos::retention::5m', { 'default_value' => '270w' }),
String $retention_1h = lookup('profile::thanos::retention::1h', { 'default_value' => '270w' }),
) {
$http_port = 12902
class { 'thanos::compact':
run_on_host => $thanos_compact_host,
objstore_account => $objstore_account,
objstore_password => $objstore_password,
http_port => $http_port,
retention_raw => $retention_raw,
retention_5m => $retention_5m,
retention_1h => $retention_1h,
concurrency => 1,
}
if $thanos_compact_host == $::fqdn {
class { 'thanos::compact::prometheus': }
}
}
|