Skip to content

Users cannot specify error files on Alpine or CentOS #82

@benwebber

Description

@benwebber

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:

{% if ansible_distribution != 'CentOS' and ansible_distribution != 'Alpine' %}
{% if haproxy_defaults.errorfile is defined %}
{% for item in haproxy_defaults.errorfile %}
errorfile {{ item.code }} {{ item.file }}
{% endfor %}
{% endif -%}
{% endif -%}

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions