roles/haproxy: Basic setup for HAproxy

The *haproxy* installs HAproxy and sets up basic configuration for it.
It configures the systemd unit to launch the service with the `-f
/etc/haproxy` arguments, which will cause it to load all files from the
`/etc/haproxy` directory, instead of just `/etc/haproxy/haproxy.cfg`.
This will allow other roles to add frontend and backend configuration by
adding additional files to this directory.
This commit is contained in:
2018-06-12 21:46:29 -05:00
parent 2f41ac3520
commit 235468a71c
6 changed files with 102 additions and 0 deletions

View File

@@ -0,0 +1,8 @@
# DO NOT put HAProxy configuration in this file! The configuration is split
# into several files:
#
# * 10-global.cfg: Global settings
# * 20-defaults.cfg: Settings common to all frontends and backends
#
# Applications should create new files for their front- and backend
# configuration.