evrardjp.papertrail
Ansible Papertrail Role
Important Note
This role is not gaining popularity, so I will archive it. Anyone is welcome to contribute or create their own version if needed.
Introduction
This role is designed to set up the Papertrail service. Currently, it only works with rsyslog. It has been tested and confirmed to work on Debian and Red Hat-based systems.
Requirements
- You must set the
papertrail_destination.
Role Variables
Mandatory:
papertrail_destination: This is required.
Not Editable:
papertrail_rsyslog_packages: The names of rsyslog packages for your system.papertrail_rsyslog_tls_packages: The names of TLS packages for your system.papertrail_rsyslog_service: The name of the rsyslog service for your system.papertrail_ca_url: A fixed URL for downloading the CA certificate, used whenpapertrail_enable_tlsisTrue.papertrail_ca_checksum: A fixed checksum for the CA file, used whenpapertrail_enable_tlsisTrue.
Editable:
papertrail_logforwarder: The type of forwarder used for Papertrail, currently only rsyslog is supported.papertrail_enable_tls: Set this toTrueto use TCP with TLS for log forwarding. Defaults to UDP.papertrail_enable_tcp: Set this toTrueto use TCP for log forwarding instead of UDP, without TLS.papertrail_loglevel: The level of logging.papertrail_rsyslog_config: A list of key-value items added to the rsyslog configuration.papertrail_verify_ca_checksum: Toggle for checking the MD5 checksum of the PEM file.
Defaults
- The default
papertrail_logforwarderis set to "rsyslog". - Both
papertrail_enable_tlsandpapertrail_enable_tcpare off by default. - Turning on
papertrail_enable_tlswill also turn onpapertrail_enable_tcpunless you specifically prevent that. - The default
papertrail_loglevelis*.*(which means send all logs). - There are predefined defaults for
papertrail_rsyslog_config. Check the defaults in defaults/main.yml. - The default setting for
papertrail_verify_ca_checksumisFalse.
Example Playbook
- hosts: all
roles:
- { role: evrardjp.papertrail, papertrail_destination: logs1234.papertrailapp.com:1234 }
Next Steps
Future plans include support for:
- syslog-ng
- remote_syslog2
- additional operating systems
License
Apache2
Author Information
Jean-Philippe Evrard
Installa
ansible-galaxy install evrardjp.papertrailLicenza
Unknown
Download
101
Proprietario
