Skip to content
This repository has been archived by the owner on Oct 13, 2023. It is now read-only.
/ ansible-role-tdagent Public archive

Ansible Role: Treasure Data td-agent

Notifications You must be signed in to change notification settings

lrk/ansible-role-tdagent

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

39 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Ansible Role: Treasure Data td-agent (lrk.tdagent)

Build Status Galaxy Ansible Ansible Ansible

An Ansible Role that install the Server-Side Agent called Treasure Agent (td-agent), to collect server-side logs and events.

Supported OSes

  • Centos 7

Requirements

None

Role Variables

Available variables along with default values are listed below (see defaults/main.yml)

# td-agent major version
td_agent_repository_major_version: 3                      # version e.g 2 ,3 ..

# User and group
tdagent_user: td-agent                      # user name
tdagent_group: td-agent                     # group name

# Directory for conf.d configurations
tdagent_conf_dir: "/etc/td-agent"                       # path of the base td-agent configuration directory
tdagent_confd_dir: "/{{ tdagent_conf_dir }}/conf.d"     # path of the conf.d directory

# List of user defined templates files, path relative to playbook_dir
tdagent_confd_templates: []                 # dictionnary (src,dest) containing templates for user defined configuration to place into tdagent_confd_dir
                                            # src: template source file, path relative to playbook_dir
                                            # dest: final configuration file name, MUST BE .conf
# Example:
# tdagent_confd_templates:
#   - { src: "path/to/my/template.confj2", dest: "myconf.conf"}
#   - ...

# List of plugins names to install
tdagent_plugins: []
# Example:
# tdagent_plugins:
#     - fluent-plugin-secure-forward
#     - fluent-plugin-elasticsearch
#     - fluent-plugin-multiprocess

# Enable forwarding
tdagent_forward_enabled: true               # enable/disable event forwarding configuration  
tdagent_forward_bind: 0.0.0.0               # bind interface       
tdagent_forward_port: 24224                 # listening port   

# Enable HTTP input via POST
tdagent_http_input_enabled: true            # enable/disable http input configuration
tdagent_http_input_bind: 0.0.0.0            # bind interface       
tdagent_http_input_port: 9880               # listening port   
tdagent_http_input_keepalive_timeout: 10s   # keepalive timeout              

# Enable Monitoring Agent: retrieve internal metrics in JSON via HTTP
tdagent_monitor_agent_enabled: true         # enable/disable monitor agent configuration
tdagent_monitor_agent_bind: 0.0.0.0         # bind interface
tdagent_monitor_agent_port: 24220           # listening port

Dependencies

None

Example Playbook

TODO
- hosts: servers
  roles:
     - lrk.tdagent

License

Apache License Version 2.0

References

Author Information

This role was created by Lrk.