Puppet Class: grafana_alloy::config

Defined in:
manifests/config.pp

Summary

Configure the Alloy service

Overview

Parameters:

  • config (Optional[String[1]]) (defaults to: undef)


4
5
6
7
8
9
10
11
12
13
14
15
16
17
# File 'manifests/config.pp', line 4

class grafana_alloy::config (
  Optional[String[1]] $config = undef,
) {
  assert_private()

  if $config {
    file { '/etc/alloy/config.alloy':
      content => $config,
      mode    => '0640',
      owner   => 'root',
      group   => 'alloy',
    }
  }
}