Puppet Class: postgres_exporter::params

Inherited by:
postgres_exporter
Defined in:
manifests/params.pp

Summary

params for exporter

Overview

Params postgres_exporter



6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# File 'manifests/params.pp', line 6

class postgres_exporter::params {
  $version                       = '0.10.1'
  $manage_user                   = true
  $manage_group                  = true
  $archive_url_base              = 'https://github.com/prometheus-community/postgres_exporter/releases/download'
  $archive_name                  = 'postgres_exporter'
  $archive_url                   = undef
  $postgres_exporter_user        = 'postgres'
  $postgres_exporter_group       = 'postgres'
  $postgres_exporter_datasource  = 'user=postgres host=/var/run/postgresql/ sslmode=disable'
  $config_file                   = '/etc/sysconfig/postgres_exporter'

  case $::architecture {
    'x86_64', 'amd64': { $arch = 'amd64' }
    'i386':            { $arch = '386' }
    default: {
      fail("${::architecture} unsuported")
    }
  }
  case $::kernel {
    'Linux': { $os = downcase($::kernel)}
    default: {
      fail("${::kernel} not supported")
    }
  }

}