Puppet Class: fluentbit::config
- Defined in:
 - manifests/config.pp
 
Summary
configures the main fluentbit main configOverview
Creates a puppet resource for every input, ouptut config Doesn’t support filters (yet) Includes all [input] and [output] configs. (@include) Sets global variables (@set) Configures global [service] section
        38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61  | 
      
        # File 'manifests/config.pp', line 38
class fluentbit::config(
  String $configfile             = '/etc/td-agent-bit/td-agent-bit.conf',
  Integer $flush                 = 5,
  Enum['on', 'off'] $daemon      = off,
  Optional[String] $log_file     = undef,
  String $log_level              = info, # TODO: Enum
  Optional[String] $parsers_file = undef, #TODO: map e.g. nginx with nginx.conf
  Optional[String] $plugins_file = undef,
  Optional[String] $streams_file = undef,
  Enum['on', 'off'] $http_server = off,
  String $http_listen            = '0.0.0.0',
  String $http_port              = '2020',
  String $coro_stack_size        = '24576',
) {
  assert_private()
  # create configfile
  file { $configfile:
    ensure  => file,
    mode    => '0644',
    content => template('fluentbit/td-agent-bit.conf.erb'),
    notify  => Class['fluentbit::service'],
  }
}
       |