Skip to content

Adding support for crt-list #62

@fintanmm

Description

@fintanmm

Hi all,

Would it be possible to add support for crt-lists as a state for haproxy. Maybe something like this.

/etc/haproxy/cert-list.txt:
  file.managed:
    - source: salt://haproxy/files/cert-list.txt
    - user: haproxy
    - group: haproxy
    - mode: 640
    - template: jinja
    - defaults:
        certlist: {{ salt['pillar.get']('haproxy:certlist') }}

and the template file would look something like this

{% for domain, cert_location in certlist.iteritems() %}
{{ cert_location }} {{ domain }}
{% endfor %}

Thanks
Fintan

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions