Classes
storj_exporter
: This module manages Storj Exporterstorj_exporter::install
: This class install Storj exporter requirements and binaries.storj_exporter::service
: This class manages service
Init class of Storj Exporter module. It can installes Storj Exporter binaries and single Service.
include storj_exporter
The following parameters are available in the storj_exporter
class.
Data type: Pattern[/\d+\.\d+\.\d+/]
Storj exporter release. See https://github.com/anclrii/Storj-Exporter/releases
Default value: '0.2.5'
Data type: Stdlib::Absolutepath
Base directory where Storj 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 Storj Exporter.
Default value: 'https://github.com/anclrii/Storj-Exporter/archive'
Data type: String
Extension of Storj exporter binaries archive.
Default value: 'tar.gz'
Data type: Optional[Stdlib::HTTPUrl]
Complete URL corresponding to the Storj 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 storj_exporter or rely on external code for that.
Default value: true
Data type: Boolean
Whether to create user for storj_exporter or rely on external code for that.
Default value: true
Data type: String
User running storj_exporter.
Default value: 'storj_exporter'
Data type: String
Group under which storj_exporter is running.
Default value: 'storj_exporter'
Data type: Stdlib::Absolutepath
if requested, we create a user for storj_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 storj_exporter service.
Default value: 'running'
Data type: Stdlib::Port
Storj exporter port (required to be accessible).
Default value: 9651
Data type: Stdlib::Host
Storj host address.
Default value: '127.0.0.1'
Data type: Stdlib::Port
Storj api port.
Default value: 14002
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: ['requests', 'prometheus_client']
This class install Storj exporter requirements and binaries.
include storj_exporter::install
The following parameters are available in the storj_exporter::install
class.
Data type: Pattern[/\d+\.\d+\.\d+/]
Storj exporter release. See https://github.com/anclrii/Storj-Exporter/releases
Default value: $storj_exporter::version
Data type: Stdlib::Absolutepath
Base directory where Storj is extracted.
Default value: $storj_exporter::base_dir
Data type: Stdlib::Absolutepath
Directory where binaries are located.
Default value: $storj_exporter::bin_dir
Data type: String
Extension of Storj exporter binaries archive.
Default value: $storj_exporter::download_extension
Data type: Stdlib::HTTPUrl
Complete URL corresponding to the Storj exporter release, default to undef.
Default value: $storj_exporter::real_download_url
Data type: Optional[String]
Custom command passed to the archive resource to extract the downloaded archive.
Default value: $storj_exporter::extract_command
Data type: Boolean
Whether to create user for storj_exporter or rely on external code for that.
Default value: $storj_exporter::manage_user
Data type: Boolean
Whether to create user for storj_exporter or rely on external code for that.
Default value: $storj_exporter::manage_group
Data type: String
User running storj_exporter.
Default value: $storj_exporter::user
Data type: String
Group under which storj_exporter is running.
Default value: $storj_exporter::group
Data type: Stdlib::Absolutepath
if requested, we create a user for storj_exporter. The default shell is false. It can be overwritten to any valid path.
Default value: $storj_exporter::user_shell
Data type: Array[String]
Add other groups to the managed user.
Default value: $storj_exporter::extra_groups
Data type: Array[String]
Python required package list.
Default value: $storj_exporter::python_required_packages
This class manages service
include storj_exporter::service
The following parameters are available in the storj_exporter::service
class.
Data type: Variant[Stdlib::Ensure::Service, Enum['absent']]
State ensured from storj_exporter service.
Default value: $storj_exporter::service_ensure
Data type: String
User running storj_exporter.
Default value: $storj_exporter::user
Data type: String
Group under which storj_exporter is running.
Default value: $storj_exporter::group
Data type: Stdlib::Port
Storj exporter port (required to be accessible).
Default value: $storj_exporter::port
Data type: Stdlib::Host
Storj host address.
Default value: $storj_exporter::storj_host_address
Data type: Stdlib::Port
Storj api port.
Default value: $storj_exporter::storj_api_port
Data type: Stdlib::Absolutepath
Directory where binaries are located.
Default value: $storj_exporter::bin_dir