Puppet Class: thanos::config

Defined in:
manifests/config.pp

Summary

This class manages configuration files

Overview

This class install and manage configuration files like object store and tracing.

Examples:

include thanos::config

Parameters:

  • manage_storage_config (Boolean) (defaults to: $thanos::manage_storage_config)

    Whether to manage storage configuration file.

  • storage_config_file (Optional[Stdlib::Absolutepath]) (defaults to: $thanos::storage_config_file)

    Path to storage configuration file.

  • storage_config (Hash[String, Data]) (defaults to: $thanos::storage_config)

    Storage configuration.

    type: one of ['S3', 'GCS', 'AZURE', 'SWIFT', 'COS', 'ALIYUNOSS', 'FILESYSTEM']
    config: storage typed configuration in Hash[String, Data]
    
  • manage_tracing_config (Boolean) (defaults to: $thanos::manage_tracing_config)

    Whether to manage tracing configuration file

  • tracing_config_file (Optional[Stdlib::Absolutepath]) (defaults to: $thanos::tracing_config_file)

    Path to tracing configuration file.

  • tracing_config (Hash[String, Data]) (defaults to: $thanos::tracing_config)

    Tracing configuration.

    type: one of ['JAEGER', 'STACKDRIVER', 'ELASTIC_APM', 'LIGHTSTEP']
    config: tracing typed configuration in Hash[String, Data]
    
  • manage_index_cache_config (Boolean) (defaults to: $thanos::manage_index_cache_config)

    Whether to manage index cache configuration file

  • index_cache_config_file (Optional[Stdlib::Absolutepath]) (defaults to: $thanos::index_cache_config_file)

    Path to index cache configuration file.

  • index_cache_config (Hash[String, Data]) (defaults to: $thanos::index_cache_config)

    Index cache configuration.

    type: one of ['IN-MEMORY', 'MEMCACHED']
    config: index cache typed configuration in Hash[String, Data]
    


31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
# File 'manifests/config.pp', line 31

class thanos::config (
  Boolean                        $manage_storage_config     = $thanos::manage_storage_config,
  Optional[Stdlib::Absolutepath] $storage_config_file       = $thanos::storage_config_file,
  Hash[String, Data]             $storage_config            = $thanos::storage_config,
  Boolean                        $manage_tracing_config     = $thanos::manage_tracing_config,
  Optional[Stdlib::Absolutepath] $tracing_config_file       = $thanos::tracing_config_file,
  Hash[String, Data]             $tracing_config            = $thanos::tracing_config,
  Boolean                        $manage_index_cache_config = $thanos::manage_index_cache_config,
  Optional[Stdlib::Absolutepath] $index_cache_config_file   = $thanos::index_cache_config_file,
  Hash[String, Data]             $index_cache_config        = $thanos::index_cache_config,
) {
  assert_private()

  if $manage_storage_config {
    thanos::config::storage { $storage_config_file:
      * => $storage_config,
    }
  }

  if $manage_tracing_config {
    thanos::config::tracing { $tracing_config_file:
      * => $tracing_config,
    }
  }

  if $manage_index_cache_config {
    thanos::config::index_cache { $index_cache_config_file:
      * => $index_cache_config,
    }
  }
}