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

Adjust acl option yaml input syntax

Open mjbnz opened this issue 4 years ago • 1 comments

Having an acl entry requiring a single dictionary member called string seemed a little superfluous, so this patch adjusts the accepted syntax to include the following two examples, but also retain the string member format.

As an array of strings:

haproxy_frontend:
  - name: 'be-http'
    ....
    acl:
      - "is_foo hdr(host) -i foo.com"
      - "is_bar hdr(host) -i bar.com"

As a dictionary of named rules:

haproxy_backend:
  - name: 'be-http'
    ....
    acl:
      is_foo: "hdr(host) -i foo.com"
      is_bar: "hdr(host) -i bar.com"

mjbnz avatar Jun 30 '20 06:06 mjbnz

Hello, any chance that this PR might be accepted?

mjbnz avatar Aug 11 '20 03:08 mjbnz