Forge Home

emqx

A Puppet module that is used for installing and configuring the EMQX MQTT Broker.

260 downloads

62 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.2.0 (latest)
  • 0.1.0
released Sep 19th 2024
This version is compatible with:
  • Puppet Enterprise 2023.8.x, 2023.7.x, 2023.6.x, 2023.5.x, 2023.4.x, 2023.3.x, 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 < 9.0.0
  • , , ,

Start using this module

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

Add this module to your Puppetfile:

mod 'jortencio-emqx', '0.2.0'
Learn more about managing modules with a Puppetfile

Add this module to your Bolt project:

bolt module add jortencio-emqx
Learn more about using this module with an existing project

Manually install this module globally with Puppet module tool:

puppet module install jortencio-emqx --version 0.2.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

jortencio/emqx — version 0.2.0 Sep 19th 2024

emqx

A Puppet module that is used for installing and configuring an EMQX MQTT Broker.

For more information, please visit EMQX

Table of Contents

  1. Description
  2. Setup
  3. Usage
  4. Limitations
  5. Development

Description

This Puppet module is used to do a basic installation of the EMQX MQTT Broker.

Setup

What emqx affects

The emqx module configures the following:

  • Downloads and installs the emqx software package
  • Configures the emqx.conf configuration file
  • Manages the emqx service

Setup Requirements

Please refer to the EMQX Installation documenation for minimum requirements for an EMQX MQTT Broker installation.

Note: This module has currently only been tested on Amazon Linux and EL8.

Beginning with emqx

In order to get started with the emqx module with a basic configuration:

include emqx

Usage

Hiera Support

This module supports the use of Hiera data for setting parameters. The following is a list of parameters configurable in Hiera (Please refer to REFERENCE.md for more details):

emqx::install_package_source: 
emqx::install_version: 
emqx::install_platform: 
emqx::install_package_extension: 
emqx::service_ensure: 
emqx::service_enable: true
emqx::manage_config: true
emqx::config_node_name: 
emqx::config_node_cookie: 
emqx::config_node_data_dir: 
emqx::config_node_options: 
emqx::config_cluster_name: 
emqx::config_cluster_discovery_strategy: 
emqx::config_cluster_options: 
emqx::config_dashboard_listeners_ssl:
emqx::config_dashboard_listeners_bind: 
emqx::config_dashboard_listeners_options:
emqx::config_authorization_options:
  deny_action:
  no_match:
  cache:
emqx::config_additional_configs:

Setting the Node cookie configuration

The key emqx::config_node_cookie is a sensitive variable. If overiding this value in a different layer of hiera (e.g. the environment layer), add the following configuration in common.yaml to convert the value to be sensitive.

lookup_options:
  emqx::config_node_cookie:
    convert_to: "Sensitive"

Setting other configuration option paths

Currently the emqx module has direct parameters for setting configurations under the node, cluster, dashboard.listener.http/dashboard.listener.https and authorization configuration paths. However, it is also possible to set configurations for other configuration option paths using the parameter emqx::config_additional_configs as the following yaml hash follows:

Format

emqx::config_additional_configs:
  <configuration_path_x>
    <field_x_1>: <value_x_1>
    <field_x_2>: <value_x_2>
  <configuration_path_y>
    <field_y_1>: <value_y_1>

Example:

emqx::config_additional_configs:
  force_shutdown:
    enable: false
    max_heap_size: "128MB"

For more information regarding the EMQX configuration paths and fields, visit EMQX configuration documentation.

Limitations

  • Currently this module is limited to configurations possible in emqx.conf

Development

If you would like to contribute with the development of this module, please feel free to log development changes in the issues register for this project.