emqx
: A basic module for managing emqx
emqx::config
: Manage emqx.conf configuration fileemqx::install
: Manage install of emqxemqx::service
: Manage emqx service
Installs and configures the emqx package and service
include emqx
The following parameters are available in the emqx
class:
install_package_source
install_version
install_platform
install_package_extension
service_ensure
service_enable
manage_config
config_node_name
config_node_cookie
config_node_data_dir
config_node_options
config_cluster_name
config_cluster_discovery_strategy
config_cluster_options
config_dashboard_listeners_ssl
config_dashboard_listeners_bind
config_dashboard_listeners_options
config_authorization_options
config_additional_configs
Data type: String
The location to source the package from.
Default value: 'https://www.emqx.com/en/downloads/broker'
Data type: String
The version of emqx. Default: '5.0.25'
Default value: '5.0.25'
Data type: String
The os platform in order to download the required package.
Default value: 'el8'
Data type: String
The file extension for the package.
Default value: 'rpm'
Data type: Variant[Enum['running', 'stopped'], Boolean]
The state of the service.
Default value: 'running'
Data type: Boolean
Boolean for enabling/disabling the service.
Default value: true
Data type: Boolean
Boolean for setting whether to manage emqx.conf.
Default value: true
Data type: String[1]
String for setting the name field for the node config path.
Default value: '[email protected]'
Data type: Sensitive[String[1]]
Sensitive string for setting the cookie field for the node config path.
Default value: Sensitive('emqxsecretcookie')
Data type: String
String for setting the data_dir field for the node config path.
Default value: '/var/lib/emqx'
Data type: Hash
Hash for setting additional fields under the node config path. Note: Do not set name, cooke and data_dir fields here.
Default value: {}
Data type: String[1]
String for setting the name field for the cluster config path.
Default value: 'emqxcl'
Data type: Enum['manual','static','mcast','dns','etcd','k8s']
Enum String for setting the discovery_strategy field for the cluster config path.
Default value: 'manual'
Data type: Hash
Hash for setting additional fields under the cluster config path. Note: Do not set name, cooke and data_dir fields here. Note: Do not set name and discovery_strategy fields here.
Default value: {}
Data type: Boolean
Boolean for setting ssl for the dashboard listener configuration. i.e. Use config path if true dashboard.listeners.https, else dashboard.listeners.http.
Default value: false
Data type: Variant[Integer,String[1]]
Integer or String for setting the emqx dashboard bind address as either a port or bind ip:port respectively.
Default value: 18083
Data type: Hash
Hash for setting additional fields under the dashboard.listeners.http or dashboard.listeners.https config path. Note: Do not set bind and option fields here.
Default value: {}
Data type: Hash
Hash for setting additional fields under the authorization config path.
Default value:
{
deny_action => 'ignore',
no_match => 'allow',
cache => '{ enable = true }',
}
Data type: Hash
Hash for setting additional config paths and fields. Note: Do not set the following config_paths here: node, cluster, dashboard, authorization.
Default value: {}