graylogcollectorsidecar
Version information
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, 2019.7.x, 2019.5.x, 2019.4.x, 2019.3.x, 2019.2.x, 2019.1.x, 2019.0.x, 2018.1.x, 2017.3.x, 2017.2.x, 2017.1.x, 2016.5.x, 2016.4.x
- Puppet >= 4.0.0
- , , ,
Start using this module
Add this module to your Puppetfile:
mod 'dodevops-graylogcollectorsidecar', '3.2.0'
Learn more about managing modules with a PuppetfileDocumentation
dodevops/graylogcollectorsidecar
Table of Contents
Description
This module installs and configures the Graylog collector sidecar.
Setup
Beginning with graylogcollectorsidecar
To install the graylog collector sidecar, simply configure the class:
class { 'graylogcollectorsidecar':
api_url => 'http://graylog.example.com:9000/api',
version => '0.1.0',
tags => [ 'apache.accesslog' ]
}
Or using hiera:
graylogcollectorsidecar::api_url: "http://graylog.example.com:9000/api"
graylogcollectorsidecar::version: "0.1.0"
graylogcollectorsidecar::tags:
- apache.accesslog
Reference
class graylogcollectorsidecar
Parameter | Description |
---|---|
version | Select the version of the collector to install. Defaults to 'latest', which selects the latest available release version |
api_url | Graylog server api url (e.g. http://graylog.example.com:9000/api) |
tags | An array of tags that the collector should be set up with |
Additionally, all other parameters as noted in the collector sidecar documentation can be specified.
The node_id will be set to the local hostname, if not specified.
Limitations
This module uses the githubreleases module to download the graylog distribution package from Github. However, Github imposes a rate limiting on unauthenticated requests, which the module does (currently, this module doesn't allow setting Github credentials).
So if you have a rather large deployment using this module, the rate limit might fail the deployment. If so, you'll have to wait for the Rate limit to be reset.
If this is a constant pain, please open an issue.
OS compatibility:
- Debian-Family (Ubuntu, Debian)
- RedHat-Family (RHEL, CentOS)
Reference
Table of Contents
Classes
graylogcollectorsidecar
: Installs and configures graylog-collector-sidecar
Classes
graylogcollectorsidecar
Installs and configures graylog-collector-sidecar
- See also https://github.com/Graylog2/collector-sidecar Graylog-Collector package https://docs.graylog.org/en/2.4/pages/collector_sidecar.html Graylog-Collector documentation
Parameters
The following parameters are available in the graylogcollectorsidecar
class.
api_url
Data type: String
URL to the Graylog server
tags
Data type: Array[String]
Array of tags to set in the collector sidecar configuration
version
Data type: String
Version of the collector to ensure
use_auth
Data type: Variant[Boolean, String]
Use authentication for Github
use_oauth
Data type: Variant[Boolean, String]
Use OAuth instead of basic authentication for Github
username
Data type: String
Username for Github
password
Data type: String
Password for Github
update_interval
Data type: Integer
Graylog-Collector sidecar configuration item "update_interval". Check docs for info.
tls_skip_verify
Data type: Boolean
Graylog-Collector sidecar configuration item "tls_skip_verify". Check docs for info.
send_status
Data type: Boolean
Graylog-Collector sidecar configuration item "send_status". Check docs for info.
node_id
Data type: String
Graylog-Collector sidecar configuration item "node_id". Check docs for info.
collector_id
Data type: String
Graylog-Collector sidecar configuration item "collector_id". Check docs for info.
log_path
Data type: String
Graylog-Collector sidecar configuration item "log_path". Check docs for info.
log_rotation_time
Data type: Integer
Graylog-Collector sidecar configuration item "log_rotation_time". Check docs for info.
log_max_age
Data type: Integer
Graylog-Collector sidecar configuration item "log_max_age". Check docs for info.
backends
Data type: Array[Hash]
Graylog-Collector sidecar configuration item "backends". Check docs for info.
service_creates
Data type: String
Using graylog-collector to install the service creates this file [internal]
sidecar_yaml_file
Data type: String
Filename of the sidecar configuration yaml [internal]
list_log_files
Data type: Optional[Array[String]]
Graylog-Collector sidecar configuration item "list_log_files". Check docs for info.
Default value: undef
package_suffix
Data type: Optional[String]
The file suffix for the package file [internal]
Default value: undef
package_provider
Data type: Optional[String]
The package provider used to install the package [internal]
Default value: undef
Dependencies
- mmckinst-hash2stuff (>= 1.2.1)
- dodevops-githubreleases (>= 4.0.0)