Forge Home

systemd_journal_remote

Installs, configures, and manages the systemd journal remote service

145 downloads

145 latest version

5.0 quality score

We run a couple of automated
scans to help you access a
module's quality. Each module is
given a score based on how well
the author has formatted their
code and documentation and
modules are also checked for
malware using VirusTotal.

Please note, the information below
is for guidance only and neither of
these methods should be considered
an endorsement by Puppet.

Version information

  • 0.1.0 (latest)
released Jan 25th 2022
This version is compatible with:
  • Puppet Enterprise 2023.2.x, 2023.1.x, 2023.0.x, 2021.7.x, 2021.6.x, 2021.5.x, 2021.4.x, 2021.3.x, 2021.2.x, 2021.1.x, 2021.0.x, 2019.8.x
  • Puppet >= 6.21.0 < 8.0.0
  • , , , , Archlinux

Start using this module

  • r10k or Code Manager
  • Bolt
  • Manual installation
  • Direct download

Add this module to your Puppetfile:

mod 'genv-systemd_journal_remote', '0.1.0'
Learn more about managing modules with a Puppetfile

Add this module to your Bolt project:

bolt module add genv-systemd_journal_remote
Learn more about using this module with an existing project

Manually install this module globally with Puppet module tool:

puppet module install genv-systemd_journal_remote --version 0.1.0

Direct download is not typically how you would use a Puppet module to manage your infrastructure, but you may want to download the module in order to inspect the code.

Download

Documentation

genv/systemd_journal_remote — version 0.1.0 Jan 25th 2022

systemd journal remote

Build Status Release Apache-2 License

Overview

This module installs, configures and manages the systemd-journal-remote systemd service.

Example Usage

Default

With no configuration the systemd-journal-remote service listens over HTTP and outputs to /var/log/journal/remote/ using the default package configuration:

include ::systemd_journal_remote

Configuration

  • The command_flags parameter is used to manage the unit file command arguments
  • The options paramter is used to configure journal-remote.conf INI settings

Parameter names and their values mirror and are validated against all arguments and options documented in man systemd-journal-remote and man journal-remote.conf.

Passive Configuration Example

An example passive service to receive journald logs and events.

class { '::systemd_journal_remote':
  command_flags => {
    'listen-https' => '0.0.0.0:19532',
    'compress'     => 'yes',
    'output'       => '/var/log/journal/remote/',
  },
  options       => {
    'SplitMode'              => 'host',
    'ServerKeyFile'          => "/etc/puppetlabs/puppet/ssl/private_keys/${trusted['certname']}.pem",
    'ServerCertificateFile'  => "/etc/puppetlabs/puppet/ssl/certs/${trusted['certname']}.pem",
    'TrustedCertificateFile' => '/etc/puppetlabs/puppet/ssl/certs/ca.pem',
  }
}

In Hiera:

systemd_journal_remote::command_flags:
  listen-https: 0.0.0.0:19532
  compress: 'yes'
  output: /var/log/journal/remote/

systemd_journal_remote::options:
  SplitMode: host
  ServerKeyFile: "/etc/puppetlabs/puppet/ssl/private_keys/%{trusted.certname}.pem"
  ServerCertificateFile: "/etc/puppetlabs/puppet/ssl/certs/%{trusted.certname}.pem"
  TrustedCertificateFile:  /etc/puppetlabs/puppet/ssl/certs/ca.pem

Active Configuration Example

An example active service that requests and pulls data:

class { '::systemd_journal_remote':
  command_flags => {
    'url'    => 'https://some.host:19531/',
    'getter' => "'curl \"-HAccept: application/vnd.fdo.journal\" https://some.host:19531/'",
    'output' => '/var/log/journal/remote/',
  },
  options       => {
    'SplitMode' => 'host',
  }
}

In Hiera:

systemd_journal_remote::command_flags:
  url: https://some.host:19531/
  getter: "'curl \"-HAccept: application/vnd.fdo.journal\" https://some.host:19531/'"
  output: /var/log/journal/remote/

systemd_journal_remote::options:
  SplitMode: host