Puppet Class: mosquitto

Defined in:
manifests/init.pp

Summary

Puppet module to manage the Eclipe Mosquitto MQTT server

Overview

Parameters:

  • manage_package (Boolean) (defaults to: true)

    Boolean to enable/disable package handling

  • manage_service (Boolean) (defaults to: true)

    Boolean to enable/disable service handling

  • package_ensure (Enum['latest', 'absent', 'present']) (defaults to: 'present')

    ensure attribute for the package resource

  • package_name (String[1]) (defaults to: 'mosquitto')

    Name of the Mosquitto package

  • service_ensure (Stdlib::Ensure::Service) (defaults to: 'running')

    the desired state of the service

  • service_name (String[1]) (defaults to: 'mosquitto')

    Name of the Mosquitto service

  • service_enable (Boolean) (defaults to: true)

    wether the service should be in autostart or not

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

    list of config options for Mosquitto

Author:

  • Tim Meusel <tim@bastelfreak.de>



15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# File 'manifests/init.pp', line 15

class mosquitto (
  Boolean $manage_package                             = true,
  Boolean $manage_service                             = true,
  Enum['latest', 'absent', 'present'] $package_ensure = 'present',
  String[1] $package_name                             = 'mosquitto',
  Stdlib::Ensure::Service $service_ensure             = 'running',
  Boolean $service_enable                             = true,
  String[1] $service_name                             = 'mosquitto',
  Array[String[1]] $config                            = [],
) {
  contain mosquitto::install
  contain mosquitto::config
  contain mosquitto::service

  Class['mosquitto::install']
  -> Class['mosquitto::config']
  ~> Class['mosquitto::service']
}