lrk.td-agent
Ansible Role: Treasure Data td-agent (lrk.tdagent)
This Ansible Role installs the Treasure Agent (td-agent) on the server to collect logs and events.
Supported Operating Systems
- CentOS 7
Requirements
- None
Role Variables
Here are the available variables with their default values (see defaults/main.yml
):
# Major version of td-agent
td_agent_repository_major_version: 3 # Example: 2, 3
# User and group settings
tdagent_user: td-agent # Username
tdagent_group: td-agent # Group name
# Directory paths for configuration files
tdagent_conf_dir: "/etc/td-agent" # Base directory for td-agent configuration
tdagent_confd_dir: "/{{ tdagent_conf_dir }}/conf.d" # Directory for additional configuration
# User-defined template files for configuration
tdagent_confd_templates: [] # List of templates with (src, dest)
# src: Path to the template file
# dest: Desired configuration file name (must end with .conf)
# Example:
# tdagent_confd_templates:
# - { src: "path/to/template.conf.j2", dest: "myconfig.conf" }
# Plugins to install
tdagent_plugins: [] # List of plugin names
# Example:
# tdagent_plugins:
# - fluent-plugin-secure-forward
# - fluent-plugin-elasticsearch
# Forwarding settings
tdagent_forward_enabled: true # Enable or disable event forwarding
tdagent_forward_bind: 0.0.0.0 # Bind interface
tdagent_forward_port: 24224 # Listening port
# HTTP input settings via POST
tdagent_http_input_enabled: true # Enable or disable HTTP input
tdagent_http_input_bind: 0.0.0.0 # Bind interface
tdagent_http_input_port: 9880 # Listening port
tdagent_http_input_keepalive_timeout: 10s # Keep-alive timeout
# Monitoring agent settings
tdagent_monitor_agent_enabled: true # Enable or disable monitoring agent
tdagent_monitor_agent_bind: 0.0.0.0 # Bind interface
tdagent_monitor_agent_port: 24220 # Listening port
Dependencies
- None
Example Playbook
Here's an example of how to use this role in a playbook:
- hosts: servers
roles:
- lrk.tdagent
License
This role is licensed under the Apache License Version 2.0.
References
Author Information
This role was created by Lrk.
Informazioni sul progetto
An Ansible Role that install the Server-Side Agent called Treasure Agent (td-agent), to collect server-side logs and events.
Installa
ansible-galaxy install lrk.td-agent
Licenza
Unknown
Download
2.3k
Proprietario