evrardjp.papertrail
Ansible Papertrail Role
Important note
This role isn't getting any traction, I am therefore archiving it. Anyone can contribute back, or fork it, if this needs to survive.
Introduction
Role for configuring papertrail service. Currently only rsyslog is supported. Confirmed to be working on Debian and Redhat like.
Requirements
papertrail_destinationmust be configured
Role Variables
Mandatory:
papertrail_destination
Not editable:
papertrail_rsyslog_packages: name of the rsyslog packages required for your distribution.papertrail_rsyslog_tls_packages: name of the tls packages required for your distribution.papertrail_rsyslog_service: name of the rsyslog service under your distribution.papertrail_ca_url: Static variable to the CA download url. Used whenpapertrail_enable_tlsis set toTrue.papertrail_ca_checksum: Static variable holding the checksum of the ca file. Used whenpapertrail_enable_tlsis set toTrue.
Editable:
papertrail_logforwarder: The forwarder used in papertrail. Only rsyslog is supported right now.papertrail_enable_tls: Switch this toTrueto enable tcp+tls log forwarding. Default is UDP usage.papertrail_enable_tcp: If you switch this toTrue, the log forwarding will be done in TCP instead of UDP. No TLS used in that case.papertrail_loglevelpapertrail_rsyslog_config: This is a list of name+value items that are inserted in the rsyslog configuration.papertrail_verify_ca_checksum: Toggles whether verifying the MD5 checksum of the pem file.
Defaults
papertrail_logforwarderis set to "rsyslog"papertrail_enable_tlsandpapertrail_enable_tcpare disabled by default.- Switching
papertrail_enable_tlsto true will magically turnpapertrail_enable_tcp, unless explicitly told not to (don't do that!). papertrail_logleveldefault is*.*(send everything)papertrail_rsyslog_confighas sane defaults defined, please check defaults/main.ymlpapertrail_verify_ca_checksumis by default to False.
Example Playbook
- hosts: all
roles:
- { role: evrardjp.papertrail, papertrail_destination: logs1234.papertrailapp.com:1234}
Next steps
Add support for
- syslog-ng
- remote_syslog2
- other OSs
License
Apache2
Author Information
Jean-Philippe Evrard
Install
ansible-galaxy install evrardjp.papertrailLicense
Unknown
Downloads
101
Owner
