Puppet Class: azurelaagent::config

Defined in:
manifests/config.pp

Summary

Change Azure Log Analytics configuration on Windows and Linux

Overview

Examples:

Explicit data

class { 'azurelaagent::config':
  azure_id     => 'your_workspace_id',
  azure_shared => 'your_shared_key',
}

Data on yaml file

include azurelaagent::config

Parameters:

  • azure_id (String)

    Azure workspace ID

  • azure_shared (String)

    Azure shared key



16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
# File 'manifests/config.pp', line 16

class azurelaagent::config (
  String $azure_id,
  String $azure_shared,
){
  case $::osfamily {
    'RedHat','Debian': {
      class { 'azurelaagent::config_linux':
        azure_id     => $azure_id,
        azure_shared => $azure_shared,
      }
    }
    'windows': {
      class { 'azurelaagent::config_windows':
        azure_id     => $azure_id,
        azure_shared => $azure_shared,
      }
    }
    default : {
      fail("The fact 'osfamily' is set to ${::osfamily} which is not supported.")
    }
  } # end case
}