- Python and packages, see
pyproject.toml
firewalld
installed and running
python-consul2
might require configurationfirewall-cmd
might requreroot
access
- Run by
cron
with access to runfirewall-cmd
(root
or any better way)
- Can test without Consul with test file provided. See:
DEBUG_CONSUL_SERVICES_OVERRIDE_JSON_URL
DEBUG_CONSUL_CURRENT_HOST_ENV_OVERRIDE
- Can test
firewall-cmd
commands without running (seeDEBUG_DRY_RUN
)
- Some
firewall-cmd
will fail and should not be treated as failure - Error Handling in general
- Documentation strings & comments if needed
- Configuration and/or arguments for debug, logging
- Tests
- Find a firewall lib or extract
firewalld
methods to a module - Extract mapping rules from
add_services_to_rules
to configuration file
- Consul Watches: subscribe for Consul catalog updates
- Network Infrastructure Automation (NIA) with Terraform and Consul