Puppet Class: cd_alloy::params

Summary

Class contains all parameters for the cd_alloy module.

Overview

cd_alloy::params.pp Module name: cd_alloy Author: Arne Teuke (arne_teuke@confdroid.com)

Parameters:

  • reqpackages (string) (defaults to: 'alloy')

    which packages to install

  • pkg_ensure (string) (defaults to: 'latest')

    'latest' or 'present'

  • ay_loki_url (string) (defaults to: 'https://loki.example.net/loki/api/v1/push')

    the url where alloy will send logs to.

  • ay_loki_username (string) (defaults to: '')

    the username to logon to loki

  • ay_loki_userpass (string) (defaults to: '')

    the password to logon to loki



11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
# File 'manifests/params.pp', line 11

class cd_alloy::params (

$reqpackages        = 'alloy',
$pkg_ensure         = 'latest',

# loki
$ay_loki_url        = 'https://loki.example.net/loki/api/v1/push',
$ay_loki_username   = '',
$ay_loki_userpass   = '',

) {

# service
$ay_service         = 'alloy'

# dirs
$ay_main_dir        = '/etc/alloy'

# files
$ay_main_file       = "$(ay_main_dir)/config.alloy"


  # includes must be last
  include cd_alloy::main::config

}