1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00
community.general/lib/ansible
Adam Miller 75127092f2 refactor firewalld module with object abstraction (#26487)
* refactor firewalld module with object abstraction

This change creates a FirewallTransaction object that each
individual transaction type is a sub-class of as they all follow the
same pattern to enable or disable something in the firewall.

Also, there's a few bugfixes here:
    - Fix the "source" type to handle permanent operations
    - Remove ambiguity of required parameters for only specific use
      cases that can lead to transactions effectively being a no-op.
      Instead, pick sane defaults and document them.
    - Change how imports are done so globals are no longer needed

This is based on the original feedback by Toshio from the last
refactor attempt:

    https://github.com/ansible/ansible-modules-extras/pull/3383

Signed-off-by: Adam Miller <maxamillion@fedoraproject.org>

* fix line too long for pep8 for shippable tests

Signed-off-by: Adam Miller <maxamillion@fedoraproject.org>

* remove firewalld from pep8/legacy-files

Signed-off-by: Adam Miller <maxamillion@fedoraproject.org>
2017-09-11 14:10:07 -07:00
..
cli Change ansible-doc usage to show -a is for internal use (#29603) 2017-09-11 11:25:34 -07:00
compat Remove wildcard imports 2017-07-28 22:10:17 -07:00
config allow config for callbaks and some fixes 2017-09-11 14:00:01 -07:00
errors Ansible Config part2 (#27448) 2017-08-15 16:38:59 -04:00
executor allow config for callbaks and some fixes 2017-09-11 14:00:01 -07:00
galaxy Removes container-enabled warning (#27578) 2017-08-01 12:51:03 -04:00
inventory bypass get_hosts and use dictionary directly 2017-08-30 10:56:45 -04:00
module_utils Improve import error handling in azure_rm_common. (#29153) 2017-09-11 09:11:28 -07:00
modules refactor firewalld module with object abstraction (#26487) 2017-09-11 14:10:07 -07:00
parsing Fixes #23680 bug with py3.x due to binary string handling (#23688) 2017-09-09 18:40:07 -07:00
playbook fixes to config/setting retrieval 2017-09-09 09:48:22 -07:00
plugins allow config for callbaks and some fixes 2017-09-11 14:00:01 -07:00
template Ansible Config part2 (#27448) 2017-08-15 16:38:59 -04:00
utils fixes to config/setting retrieval 2017-09-09 09:48:22 -07:00
vars remove fact namespacing 2017-09-10 17:37:52 -04:00
__init__.py Fix ziploader for the cornercase of ansible invoking ansible. 2016-04-29 08:47:49 -07:00
constants.py Fix handling of config vars with eval expression (#29536) 2017-09-11 16:04:51 +02:00
release.py Bump the versions now that devel is 2.5 2017-09-06 13:13:57 -07:00