This repository creates an AMI in AWS with HAProxy with logging to rsyslog
This file contains a wrap up for Ansible script to be run inside small Red Hat Enterprise Linux 8.x machine
Ansible playbook installing the following:
-
rsyslog
-
HAProxy v.1.7.14 - installed from source and compiled locally wih the following options:
- TARGET: linux2628
- USE_PCRE: 1
- USE_OPENSSL: 1
- USE_ZLIB: 1
- USE_LIBCRYPT: 1
More information can be found here
This file is copied to /home/ec2-user
and cron entry created to run it every minute
Initial rsyslog main configuration
Initial rsyslog config to capture logs from HAProxy
HAProxy initial configuration. It contains TCP frontend (23) which is used for testing if proxy is up.
if you plan to change it, update playbook.yml
accordingly