unfortunately, for now you'll have to repeat the acl in each frontend :)

Baptiste

On Tue, Apr 7, 2015 at 9:14 PM, Florin Andrei <[email protected]> wrote:
> I have a few ACLs that are identical for several frontends. I tried to
> define the ACLs in the defaults section, but I got an error (quote at the
> end).
>
> Is there a way around this? I'd like to not have to repeat identical
> configuration lines for many frontends.
>
>
> Apr  7 19:05:49 haproxy-test haproxy-systemd-wrapper: [ALERT] 096/190549
> (20038) : parsing [/etc/haproxy/haproxy.cfg:56] : 'acl' not allowed in
> 'defaults' section.
> Apr  7 19:05:49 haproxy-test haproxy-systemd-wrapper: [ALERT] 096/190549
> (20038) : parsing [/etc/haproxy/haproxy.cfg:57] : 'acl' not allowed in
> 'defaults' section.
> Apr  7 19:05:49 haproxy-test haproxy-systemd-wrapper: [ALERT] 096/190549
> (20038) : parsing [/etc/haproxy/haproxy.cfg:58] : 'acl' not allowed in
> 'defaults' section.
> Apr  7 19:05:49 haproxy-test haproxy-systemd-wrapper: [ALERT] 096/190549
> (20038) : parsing [/etc/haproxy/haproxy.cfg:59] : 'acl' not allowed in
> 'defaults' section.
> Apr  7 19:05:49 haproxy-test haproxy-systemd-wrapper: [ALERT] 096/190549
> (20038) : parsing [/etc/haproxy/haproxy.cfg:60] : 'acl' not allowed in
> 'defaults' section.
> Apr  7 19:05:49 haproxy-test haproxy-systemd-wrapper: [ALERT] 096/190549
> (20038) : parsing [/etc/haproxy/haproxy.cfg:62] : 'use_backend' not allowed
> in 'defaults' section.
> Apr  7 19:05:49 haproxy-test haproxy-systemd-wrapper: [ALERT] 096/190549
> (20038) : parsing [/etc/haproxy/haproxy.cfg:63] : 'use_backend' not allowed
> in 'defaults' section.
> Apr  7 19:05:49 haproxy-test haproxy-systemd-wrapper: [ALERT] 096/190549
> (20038) : parsing [/etc/haproxy/haproxy.cfg:64] : 'use_backend' not allowed
> in 'defaults' section.
> Apr  7 19:05:49 haproxy-test haproxy-systemd-wrapper: [ALERT] 096/190549
> (20038) : parsing [/etc/haproxy/haproxy.cfg:65] : 'use_backend' not allowed
> in 'defaults' section.
> Apr  7 19:05:49 haproxy-test haproxy-systemd-wrapper: [ALERT] 096/190549
> (20038) : parsing [/etc/haproxy/haproxy.cfg:66] : 'use_backend' not allowed
> in 'defaults' section.
>
>
>
> --
> Florin Andrei
> http://florin.myip.org/
>

Reply via email to