Skip to content
This repository was archived by the owner on Oct 22, 2024. It is now read-only.
This repository was archived by the owner on Oct 22, 2024. It is now read-only.

Handle multiple service instances with unique configs #1

@imperialwicket

Description

@imperialwicket

Supporting multiple lumberjack instances would be great. I'm thinking a change from:

class { 'lumberjack': 
  host        => 'logstashhost',
  port        => '1234',
  files       => ['/var/log/messages', '/var/log/secure'],
  ssl_ca_path => "puppet:///path/to/ca.crt",
}

To something like this:

class { 'lumberjack': 
  host        => 'logstash.example.com',
  ssl_ca_path => 'puppet:///path/to/ca.crt',
}
lumberjack::service { 'lj-message':
  port  => '1234',
  files => ['/var/log/messages'],
}
lumberjack::service{ 'lj-secure':
  port   => '1244',
  files  => ['/var/log/secure'],
  fields => { someField => "someValue" },
  host   => "other.logstash.example.com',  #override host/ca_path here?
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions