Further development #5
Replies: 5 comments
-
@thecandler @Dellerium I would appreciate if you would share your opinion. |
Beta Was this translation helpful? Give feedback.
-
Hello @ansibleguy, I appreciate you opening this discussion and the work you've done on this collection thus far. You've been very helpful as I've come across bugs or needed to extend functionality. I think integration tests are definitely needed. Ideally, breaking changes should be immediately detectable, rather than requiring someone to download the most recent version of the collection and then rerun whatever playbook they have for their specific use case. Primarily since requiring someone to rerun their playbook means you'll only detect issues that their playbook happens to trigger, but also because it would allow us to prevent breaking changes from getting pushed to the latest branch at all. I'm not sure the extent of what the So, to allow only outoing traffic on port 80 (assuming the output chain is already attached to the output hook), rather than using raw_rule like:
instead you'd write something like
If that's the goal, I guess that would be useful, I certainly like how that looks better than the current solution with needing to write the rule myself. My use case is pretty simple as well, so I think a module that works that way would be able to work for all the rule that I need, rather than using raw_rule. As for being able to interact with config objects - I can't really speak on the importance of this since my current use-case doesn't call for these sorts of configuration objects. I'm up for helping work on new features/bugs. I haven't done much work on ansible collections before, so I'm not very familiar with the inner workings of that side of things, but I am familiar with python so I should be able to write new code/fix bugs as long as they aren't too ansible-specific. |
Beta Was this translation helpful? Give feedback.
-
Greetings @thecandler ! Thanks for the response and sorry for my delay - had a time-intensive project at work. I'll try to find some time to create a testing-workflow first. I have some vacation days ahead - so that should be doable next month. Regarding the Thank you for offering up your help. |
Beta Was this translation helpful? Give feedback.
-
@thecandler I have implemented basic integration testing. |
Beta Was this translation helpful? Give feedback.
-
The tests are now also executed daily. |
Beta Was this translation helpful? Give feedback.
-
Greetings.
Until now I haven't invested too much time in developing these modules as I was not sure if someone would have an use for them.
I would like to discuss the next steps in the development process.
What I have in mind:
Adding integration tests like I did for the ansibleguy.opnsense collection
This would boost the code-quality and allow us to find bugs earlier
Implement the
ansibleguy.nftables.rule
moduleThe module should allow users to piece together rules by using multiple fields.
In a similar way the community.general.ufw or my ansibleguy.infra_nftables role can be used
Modules for some different 'config objects' like counters, limits, sets, variables, maps, ...
Beta Was this translation helpful? Give feedback.
All reactions