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/
Go to file
Imran Iqbal de4e1915fb
fix(map.jinja): fix salt-lint errors
```bash
Examining firewalld/map.jinja of type state
[209] Jinja comment should have spaces before and after: {# comment #}
firewalld/map.jinja:4
{## Start with  defaults from defaults.yaml ##}

[209] Jinja comment should have spaces before and after: {# comment #}
firewalld/map.jinja:7
{##

[201] Trailing whitespace
firewalld/map.jinja:16
  }, grain='os_family', merge=salt['pillar.get']('firewalld:lookup'))

[209] Jinja comment should have spaces before and after: {# comment #}
firewalld/map.jinja:19
{## Merge the flavor_map to the default settings ##}

[209] Jinja comment should have spaces before and after: {# comment #}
firewalld/map.jinja:22
{## Merge in salt:lookup pillar ##}
```
2019-11-09 08:24:55 +00:00
bin feat(semantic-release): implement for this formula 2019-11-09 08:24:55 +00:00
firewalld fix(map.jinja): fix salt-lint errors 2019-11-09 08:24:55 +00:00
test/integration/default feat(semantic-release): implement for this formula 2019-11-09 08:24:55 +00:00
.gitignore feat(semantic-release): implement for this formula 2019-11-09 08:24:55 +00:00
.rubocop.yml feat(semantic-release): implement for this formula 2019-11-09 08:24:55 +00:00
.salt-lint feat(semantic-release): implement for this formula 2019-11-09 08:24:55 +00:00
.travis.yml feat(semantic-release): implement for this formula 2019-11-09 08:24:55 +00:00
.yamllint feat(semantic-release): implement for this formula 2019-11-09 08:24:55 +00:00
commitlint.config.js feat(semantic-release): implement for this formula 2019-11-09 08:24:55 +00:00
FORMULA feat(semantic-release): implement for this formula 2019-11-09 08:24:55 +00:00
Gemfile feat(semantic-release): implement for this formula 2019-11-09 08:24:55 +00:00
kitchen.yml feat(semantic-release): implement for this formula 2019-11-09 08:24:55 +00:00
LICENSE Initial commit. 2014-08-23 16:44:48 +02:00
pillar.example add updated firewalld.conf from 0.7.1 2019-09-15 21:01:15 +01:00
pre-commit_semantic-release.sh feat(semantic-release): implement for this formula 2019-11-09 08:24:55 +00:00
README.rst Updated REDME 2018-08-25 16:16:01 -03:00
release-rules.js feat(semantic-release): implement for this formula 2019-11-09 08:24:55 +00:00
release.config.js feat(semantic-release): implement for this formula 2019-11-09 08:24:55 +00:00
VERSION Update pillar.example 2018-08-25 19:05:21 -03:00

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

image

NOTICE BEFORE YOU USE

TODO

  • configure local pre-commit hooks (code syntax check based on file extension, check for ugly utf-8 mac os white space)

Instructions

  1. Add this repository as a GitFS backend in your Salt master config.
  2. Configure your Pillar top file (/srv/pillar/top.sls), see pillar.example
  3. 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