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

Users cannot specify error files on Alpine or CentOS

Open benwebber opened this issue 7 years ago • 2 comments

CentOS and Alpine don't ship error files (or don't place them in the locations found in defaults.yml). In the defaults.cfg template, we do not configure errorfile directives on these distributions:

https://github.com/devops-coop/ansible-haproxy/blob/0dac057616e9758c51b2f88d1bc9754b3f1e3caa/templates/defaults.cfg#L52-L58

This prevents users on those distributions from declaring error files using this role.

We need to allow the user to specify that they want to configure the files if they've provided them outside this role.

benwebber avatar Apr 13 '17 07:04 benwebber

I have been looking at this but the only thing I have come up with is a separate default/main.yml for distributions with or without errorfiles.

roedie avatar Apr 15 '17 19:04 roedie

Hi Guys,

just in case. RHEL also does not ship errorfiles so for using your role i had to extend with:

... and ansible_distribution != 'RedHat' .... CentOS and RHEL put their errorfiles here:

/usr/share/haproxy/

by default.

Cheers!

couchgott avatar Sep 18 '17 15:09 couchgott