Classes
fail2ban_exporter
: This module manages Fail2ban Exporterfail2ban_exporter::install
: This class install Fail2ban exporter requirements and binaries.fail2ban_exporter::service
: This class manages service
Init class of Fail2ban Exporter module. It can installes Fail2ban Exporter binaries and single Service.
include fail2ban_exporter
The following parameters are available in the fail2ban_exporter
class.
Data type: String
Fail2ban exporter release. See https://github.com/anclrii/Fail2ban-Exporter/releases
Default value: 'master'
Data type: Stdlib::Absolutepath
Base directory where Fail2ban is extracted.
Default value: '/opt'
Data type: Stdlib::Absolutepath
Directory where binaries are located.
Default value: '/usr/local/bin'
Data type: Stdlib::HTTPUrl
Base URL for Fail2ban Exporter.
Default value: 'https://github.com/Kylapaallikko/fail2ban_exporter/archive'
Data type: String
Extension of Fail2ban exporter binaries archive.
Default value: 'tar.gz'
Data type: Optional[Stdlib::HTTPUrl]
Complete URL corresponding to the Fail2ban exporter release, default to undef.
Default value: undef
Data type: Optional[String]
Custom command passed to the archive resource to extract the downloaded archive.
Default value: undef
Data type: Boolean
Whether to create user for fail2ban-exporter or rely on external code for that.
Default value: false
Data type: Boolean
Whether to create user for fail2ban-exporter or rely on external code for that.
Default value: false
Data type: String
User running fail2ban-exporter.
Default value: 'root'
Data type: String
Group under which fail2ban-exporter is running.
Default value: 'root'
Data type: Stdlib::Absolutepath
if requested, we create a user for fail2ban-exporter. The default shell is false. It can be overwritten to any valid path.
Default value: '/bin/false'
Data type: Array[String]
Add other groups to the managed user.
Default value: []
Data type: Variant[Stdlib::Ensure::Service, Enum['absent']]
State ensured from fail2ban-exporter service.
Default value: 'running'
Data type: Stdlib::Host
Fail2ban exporter listen address.
Default value: '0.0.0.0'
Data type: Stdlib::Port
Fail2ban exporter listen port (required to be accessible).
Default value: 9180
Data type: Boolean
Whether to install python3 or rely on external code for that. Python3 is required to run exporter binary.
Default value: true
Data type: Array[String]
Python required package list.
Default value: ['prometheus_client']
This class install Fail2ban exporter requirements and binaries.
include fail2ban_exporter::install
The following parameters are available in the fail2ban_exporter::install
class.
Data type: String
Fail2ban exporter release. See https://github.com/anclrii/Fail2ban-Exporter/releases
Default value: $fail2ban_exporter::version
Data type: Stdlib::Absolutepath
Base directory where Fail2ban is extracted.
Default value: $fail2ban_exporter::base_dir
Data type: Stdlib::Absolutepath
Directory where binaries are located.
Default value: $fail2ban_exporter::bin_dir
Data type: String
Extension of Fail2ban exporter binaries archive.
Default value: $fail2ban_exporter::download_extension
Data type: Stdlib::HTTPUrl
Complete URL corresponding to the Fail2ban exporter release, default to undef.
Default value: $fail2ban_exporter::real_download_url
Data type: Optional[String]
Custom command passed to the archive resource to extract the downloaded archive.
Default value: $fail2ban_exporter::extract_command
Data type: Boolean
Whether to create user for fail2ban-exporter or rely on external code for that.
Default value: $fail2ban_exporter::manage_user
Data type: Boolean
Whether to create user for fail2ban-exporter or rely on external code for that.
Default value: $fail2ban_exporter::manage_group
Data type: String
User running fail2ban-exporter.
Default value: $fail2ban_exporter::user
Data type: String
Group under which fail2ban-exporter is running.
Default value: $fail2ban_exporter::group
Data type: Stdlib::Absolutepath
if requested, we create a user for fail2ban-exporter. The default shell is false. It can be overwritten to any valid path.
Default value: $fail2ban_exporter::user_shell
Data type: Array[String]
Add other groups to the managed user.
Default value: $fail2ban_exporter::extra_groups
Data type: Array[String]
Python required package list.
Default value: $fail2ban_exporter::python_required_packages
This class manages service
include fail2ban_exporter::service
The following parameters are available in the fail2ban_exporter::service
class.
Data type: Variant[Stdlib::Ensure::Service, Enum['absent']]
State ensured from fail2ban-exporter service.
Default value: $fail2ban_exporter::service_ensure
Data type: String
User running fail2ban-exporter.
Default value: $fail2ban_exporter::user
Data type: String
Group under which fail2ban-exporter is running.
Default value: $fail2ban_exporter::group
Fail2ban exporter port (required to be accessible).
Fail2ban host address.
Fail2ban api port.
Data type: Stdlib::Absolutepath
Directory where binaries are located.
Default value: $fail2ban_exporter::bin_dir
Data type: Stdlib::Host
Default value: $fail2ban_exporter::listen_address
Data type: Stdlib::Port
Default value: $fail2ban_exporter::listen_port