You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* proxmox_firewall: new_module for firewall config
- Added method to get FW rules at cluster, node, vm, vnet levels
* proxmox_firewall: Add condition for security group
* proxmox_firewall: Add method to create rule at cluster level
* proxmox_firewall: Refactor to remove similar functions
* proxmox_firewall: Add method to update fw rules
* proxmox_firewall: Added method to delete rule
* proxmox_firewall: create/delete group
* proxmox_firewall: Added param validations
* proxmox_firewall: Added Doc
- Fix Sanity issues
* proxmox_firewall: Add force condition
- state=present:
+ check if fw rules already exists and if needed update them instead of creating
+ check if group exists and if so don't do anything
- state=update:
+ check if fw rules don't existsand if needed create them instead of updating
- make rules.pos as required this is to handle above conditions
- add method to get security groups and list them with firewall rules when state is not provided
- add proxmox_firewall in meta/runtime.yml
* proxmox_firewall: Add unit tests
* proxmox_firewall: simplify conditions
* proxmox_firewall: Improve checks
- Earlier it was only checking if rule at pos already exists
- If it did it would update it given force was true.
- But it means if we ran same pipeline twice without force it would fail
- To fix it Checking the entier rule
* proxmox_firewall & proxmox module_utils
- Move check_rules() to proxmox module_utils and rename to compare_list_of_dicts()
- Generalize the implemnetation as this is usefull in multiple places.
- e.g. filtering out which fw rules, aliases, etc needs to be created/updated
* proxmox_firewall: Add methods to create/update/delete aliases
* proxmox_firewall: remove unnecsary getattr
* proxmox_firewall: Split into seprate proxmox_firewall_info
- Also add get methods in module_utils.
* proxmox_firewall: Merge state present and update
* proxmox_firewall & proxmox_firewall_info - Added tests and fixed sanity issues
* module_utils/proxmox: updated compare_list_of_dict()
* Apply suggestions from code review
Added suggestions from @IamLunchbox
Co-authored-by: IamLunchbox <[email protected]>
* proxmox_firewall: Fix minor bugs and sanity issues
- When state is absent and pos is 0 if condition with pos was failing.
to fix it explicitly check if pos is not None.
---------
Co-authored-by: Jeffrey van Pelt <[email protected]>
Co-authored-by: IamLunchbox <[email protected]>
0 commit comments