Skip to content

Conversation

@morey-tech
Copy link
Owner

pfSense's HAProxy config generator reads ACLs from the <ha_acls> XML section, not <a_acl>. The module was only writing to <a_acl>, causing ACLs created via Ansible to be missing from the generated haproxy.cfg.

This fix adds parallel handling for the <ha_acls> section:

  • Initialize ha_acls_elt in _validate_params()
  • Add _find_ha_acl_target() to locate ACLs in ha_acls
  • Override _add() to create ACLs in both sections
  • Override _copy_and_update_target() to sync updates
  • Override _remove() to delete from both sections

pfSense's HAProxy config generator reads ACLs from the <ha_acls> XML
section, not <a_acl>. The module was only writing to <a_acl>, causing
ACLs created via Ansible to be missing from the generated haproxy.cfg.

This fix adds parallel handling for the <ha_acls> section:
- Initialize ha_acls_elt in _validate_params()
- Add _find_ha_acl_target() to locate ACLs in ha_acls
- Override _add() to create ACLs in both sections
- Override _copy_and_update_target() to sync updates
- Override _remove() to delete from both sections
@morey-tech morey-tech enabled auto-merge (squash) December 19, 2025 17:37
@morey-tech morey-tech merged commit 5bf0f38 into main Dec 19, 2025
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants