infra-ansible icon indicating copy to clipboard operation
infra-ansible copied to clipboard

manage-haproxy role should support a directory of configuration files

Open oybed opened this issue 5 years ago • 0 comments

As-is, the manage-haproxy role includes all configuration in one file. This works, but may be a bit hard to manage at times. The role should be updated to support using multiple files to manage the frontend/backend configuration. As a result, the configuration structure would look something like:

/etc/haproxy/
  |-haproxy.cfg
  |-conf.d
    |-frontend-one.example.com.cfg
    |-frontend-two.example.com.cfg
    |-backend-example.com.cfg

In order for this work, an extra -f /etc/haproxy/conf.d needs to be added to the haproxy options in /etc/sysconfig/haproxy

oybed avatar Oct 30 '18 16:10 oybed