feat: add HAProxy frontend and frontend server modules #2
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
This PR adds complete Ansible module support for managing HAProxy frontends and frontend servers (bind addresses/ports) in pfSense.
This implementation is based on the original work from @cosmosified in the upstream PR #1, with all requested changes from the code review incorporated.
Changes
New Ansible Modules
pfsense_haproxy_frontend- Manage HAProxy frontend configurationspfsense_haproxy_frontend_server- Manage HAProxy frontend bind addresses and portsModule Utils
haproxy_frontend.py- Core module utilities for frontend managementhaproxy_frontend_server.py- Core module utilities for frontend server managementMetadata Updates
galaxy.ymlauthors list.DS_Storeentry to.gitignoreImplementation Details
Module Design
name,frontend) are required=Truestate: present/absentfor idempotent managementDocumentation
Version
version_added: 0.2.0for both new modules (next minor release)Code Review Changes Addressed
All feedback from PR #1 has been implemented:
Testing
The modules follow the established patterns from
pfsense_haproxy_backendandpfsense_haproxy_backend_server, ensuring consistency with existing functionality.Suggested test scenarios:
Related