Puppet Class: profile::thanos::compact

Defined in:
modules/profile/manifests/thanos/compact.pp

Overview

Parameters:

  • thanos_compact_host (Stdlib::Fqdn) (defaults to: lookup('profile::thanos::compact_host'))
  • objstore_account (Hash[String, String]) (defaults to: lookup('profile::thanos::objstore_account'))
  • objstore_password (String) (defaults to: lookup('profile::thanos::objstore_password'))
  • retention (String) (defaults to: lookup('profile::thanos::retention', { 'default_value' => '270w' }))


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# File 'modules/profile/manifests/thanos/compact.pp', line 1

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 = lookup('profile::thanos::retention', { '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         => $retention,
        concurrency       => 1,
    }

    if $thanos_compact_host == $::fqdn {
        class { 'thanos::compact::prometheus': }
    }
}