SaltStack Formula to set up and configure Firewalld, dynamically managed firewall with support for network/firewall zones to define the trust level of network connections or interfaces
https://github.com/saltstack-formulas/firewalld-formula/
0f808d6afb
```bash firewalld-formula$ yamllint -s . ./pillar.example 2:1 warning missing document start "---" (document-start) 3:12 warning truthy value should be one of [false, true] (truthy) 12:13 warning truthy value should be one of [false, true] (truthy) 15:89 error line too long (108 > 88 characters) (line-length) 19:13 warning truthy value should be one of [false, true] (truthy) 30:89 error line too long (363 > 88 characters) (line-length) 96:89 error line too long (170 > 88 characters) (line-length) 108:15 error wrong indentation: expected 12 but found 14 (indentation) 115:13 error empty value in block mapping (empty-values) 116:2 error syntax error: found character '%' that cannot start any token 152:89 error line too long (112 > 88 characters) (line-length) ./firewalld/defaults.yaml 3:1 warning missing document start "---" (document-start) ``` |
||
---|---|---|
bin | ||
firewalld | ||
test/integration/default | ||
.gitignore | ||
.rubocop.yml | ||
.salt-lint | ||
.travis.yml | ||
.yamllint | ||
commitlint.config.js | ||
FORMULA | ||
Gemfile | ||
kitchen.yml | ||
LICENSE | ||
pillar.example | ||
pre-commit_semantic-release.sh | ||
README.rst | ||
release-rules.js | ||
release.config.js | ||
VERSION |
firewalld-formula
Salt Stack Formula to set up and configure Firewalld, dynamically managed firewall with support for network/firewall zones to define the trust level of network connections or interfaces
NOTICE BEFORE YOU USE
- This formula aims to follow the conventions and recommendations described at http://docs.saltstack.com/topics/conventions/formulas.html
TODO
- configure local pre-commit hooks (code syntax check based on file extension, check for ugly utf-8 mac os white space)
Instructions
- Add this repository as a GitFS backend in your Salt master config.
- Configure your Pillar top file (
/srv/pillar/top.sls
), see pillar.example - Include this Formula within another Formula or simply define your
needed states within the Salt top file
(
/srv/salt/top.sls
).
Available states
firewalld
Manage firewalld
Additional resources
None
Formula Dependencies
None
Contributions
Contributions are always welcome. All development guidelines you have to know are
- write clean code (proper YAML+Jinja syntax, no trailing whitespaces, no empty lines with whitespaces, LF only)
- set sane default settings
- test your code
- update README.rst doc
Salt Compatibility
Tested with:
- 2018.3.x (will probably work too with 2017.x.x)
OS Compatibility
Tested with:
- CentOS 7
- Debian 9
- Ubuntu 18.04