Puppet Class: influxdb::profile::toml

Defined in:
manifests/profile/toml.pp

Summary

Installs the toml-rb gem inside Puppet server and agent

Overview

Examples:

Basic usage

include influxdb::profile::toml

Parameters:

  • version (String) (defaults to: '2.1.1')

    Version of the toml-rb gem to install

  • install_options_server (Array[String[1]]) (defaults to: [])

    Pass additional parameters to the puppetserver gem installation

  • install_options_agent (Array[String[1]]) (defaults to: [])

    Pass additional parameters to the puppetserver gem installation



10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# File 'manifests/profile/toml.pp', line 10

class influxdb::profile::toml (
  String $version = '2.1.1',
  Array[String[1]] $install_options_server = [],
  Array[String[1]] $install_options_agent = [],
) {
  $service_name = $facts['pe_server_version'] ? {
    undef   => 'puppetserver',
    default => 'pe-puppetserver',
  }

  package { 'toml-rb':
    ensure          => $version,
    provider        => 'puppetserver_gem',
    install_options => $install_options_server,
    notify          => Service[$service_name],
  }

  package { 'toml-rb agent':
    ensure          => $version,
    name            => 'toml-rb',
    provider        => 'puppet_gem',
    install_options => $install_options_agent,
  }
}