Puppet Class: alloy_cd::params

Summary

Class contains all parameters for the alloy_cd module.

Overview

alloy_cd::params.pp Module name: alloy_cd 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: 'loki_user')

    the username to logon to loki

  • ay_loki_userpass (String) (defaults to: 'loki_pass')

    the password to logon to loki

  • ay_manage_loki (Boolean) (defaults to: true)

    whether to manage log forwarding to loki

  • ay_manage_prom (Boolean) (defaults to: true)

    whether to manage metric forwarding

  • ay_prom_url (String) (defaults to: 'https://prometheus.example.net/api/v1/write')

    the url where alloy will send metrics

  • ay_log_targets (Array) (defaults to: ['/var/log/messages','/var/log/secure',])

    the logging targets

  • ay_manage_user (Boolean) (defaults to: true)

    whether to manage user settings

  • ay_user (String) (defaults to: 'alloy')

    the alloy user name

  • ay_groups (Array) (defaults to: ['wheel','adm'])

    which groups the user should be in

  • ay_user_shell (String) (defaults to: '/sbin/nologin')

    which shell to use



19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
# File 'manifests/params.pp', line 19

class alloy_cd::params (

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

# loki
  Boolean $ay_manage_loki      = true,
  String $ay_loki_url         = 'https://loki.example.net/loki/api/v1/push',
  String $ay_loki_username    = 'loki_user',
  String $ay_loki_userpass    = 'loki_pass',
  Array $ay_log_targets       = ['/var/log/messages','/var/log/secure',],

# prometheus
  Boolean $ay_manage_prom     = true,
  String $ay_prom_url         = 'https://prometheus.example.net/api/v1/write',

# user
  Boolean $ay_manage_user     = true,
  String $ay_user             = 'alloy',
  Array $ay_groups            = ['wheel','adm'],
  String $ay_user_shell       = '/sbin/nologin',

) {
  # service
  $ay_service         = 'alloy'

  # dirs
  $ay_main_dir        = '/etc/alloy'

  # files
  $ay_main_file       = "${ay_main_dir}/config.alloy"

  # includes must be last
  include alloy_cd::main::config
}