https://github.com/ukhomeoffice/dq-packer-peering-haproxy
https://github.com/ukhomeoffice/dq-packer-peering-haproxy
haproxy hodq packer
Last synced: 16 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/ukhomeoffice/dq-packer-peering-haproxy
- Owner: UKHomeOffice
- License: mit
- Created: 2017-11-16T09:23:56.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2025-04-28T10:54:31.000Z (about 1 month ago)
- Last Synced: 2025-04-28T11:29:41.537Z (about 1 month ago)
- Topics: haproxy, hodq, packer
- Language: Jinja
- Size: 154 KB
- Stars: 1
- Watchers: 16
- Forks: 1
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# dq-packer-peering-haproxy
This repository creates an AMI in AWS with [HAProxy](http://www.haproxy.org/download/1.7/doc/intro.txt) with logging to [rsyslog](https://www.rsyslog.com/)
### `packer.json`
This file contains a wrap up for Ansible script to be run inside small Red Hat Enterprise Linux 8.x machine## `playbook.yml`
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: 1More information can be found [here](https://github.com/joyent/haproxy-1.8/blob/master/Makefile)
## `templates`
#### `gets3content.sh`
This file is copied to `/home/ec2-user` and cron entry created to run it every minute#### `rsyslog.conf.j2`
Initial rsyslog main configuration#### `49-haproxy.conf.j2`
Initial rsyslog config to capture logs from HAProxy#### `haproxy.cfg`
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