Commit Graph

198 Commits

Author SHA1 Message Date
Daniel Dehennin
a29e81bac6
fix(_mapdata): ensure map data is directly under values
* Semi-automated using https://github.com/myii/ssf-formula/pull/287
2021-01-14 20:35:10 +00:00
semantic-release-bot
87df82dc79 chore(release): 1.1.1 [skip ci]
## [1.1.1](https://github.com/saltstack-formulas/firewalld-formula/compare/v1.1.0...v1.1.1) (2020-12-27)

### Continuous Integration

* **commitlint:** ensure `upstream/master` uses main repo URL [skip ci] ([a615af1](a615af103e))
* **gitlab-ci:** add `rubocop` linter (with `allow_failure`) [skip ci] ([472a16c](472a16c283))
* **gitlab-ci:** use GitLab CI as Travis CI replacement ([a88d749](a88d749499))

### Tests

* **_mapdata:** generate verification files ([7665d77](7665d77f67))
* **map:** verify `map.jinja` dump using `_mapdata` state ([22869e0](22869e0c7f))
2020-12-27 15:38:45 +00:00
Imran Iqbal
0def96f632
Merge pull request #46 from myii/test/manage-map.jinja-verification
test(map): verify `map.jinja` dump using `_mapdata` state
2020-12-27 15:32:49 +00:00
Imran Iqbal
7665d77f67
test(_mapdata): generate verification files 2020-12-26 08:01:08 +00:00
Imran Iqbal
22869e0c7f
test(map): verify map.jinja dump using _mapdata state
* Semi-automated using https://github.com/myii/ssf-formula/pull/286
2020-12-26 08:00:04 +00:00
Imran Iqbal
a615af103e
ci(commitlint): ensure upstream/master uses main repo URL [skip ci]
* Automated using https://github.com/myii/ssf-formula/pull/278
2020-12-20 18:44:18 +00:00
Imran Iqbal
472a16c283
ci(gitlab-ci): add rubocop linter (with allow_failure) [skip ci]
* Automated using https://github.com/myii/ssf-formula/pull/277
2020-12-19 14:29:50 +00:00
Imran Iqbal
a88d749499
ci(gitlab-ci): use GitLab CI as Travis CI replacement
* Automated using https://github.com/myii/ssf-formula/pull/275
2020-12-16 06:30:40 +00:00
Imran Iqbal
ba2ef4455d
chore(gemfile+lock): update to latest gem versions (2020-W44) [skip ci]
* Automated using https://github.com/myii/ssf-formula/pull/274
2020-10-26 22:47:58 +00:00
semantic-release-bot
fd556534e5 chore(release): 1.1.0 [skip ci]
# [1.1.0](https://github.com/saltstack-formulas/firewalld-formula/compare/v1.0.0...v1.1.0) (2020-10-24)

### Continuous Integration

* **gemfile.lock:** add to repo with updated `Gemfile` [skip ci] ([7a964e4](7a964e4738))
* **kitchen:** use `saltimages` Docker Hub where available [skip ci] ([a33cd64](a33cd641e2))
* **kitchen+travis:** remove `master-py2-arch-base-latest` [skip ci] ([24e115c](24e115cacb))
* **pre-commit:** add to formula [skip ci] ([9254027](9254027396))
* **pre-commit:** enable/disable `rstcheck` as relevant [skip ci] ([c7e4dee](c7e4dee62a))
* **pre-commit:** finalise `rstcheck` configuration [skip ci] ([118eacf](118eacff45))
* **travis:** add notifications => zulip [skip ci] ([b6c60b2](b6c60b27b9))
* **workflows/commitlint:** add to repo [skip ci] ([93853b6](93853b643f))

### Features

* **firewalld.conf:** support configuration of `AllowZoneDrifting` ([0ff53ff](0ff53ffb27)), closes [#44](https://github.com/saltstack-formulas/firewalld-formula/issues/44)
2020-10-24 07:29:43 +00:00
Imran Iqbal
cb01f13091
Merge pull request #45 from myii/feat/support-AllowZoneDrifting
feat(firewalld.conf): support configuration of `AllowZoneDrifting`
2020-10-24 08:20:12 +01:00
Imran Iqbal
0ff53ffb27
feat(firewalld.conf): support configuration of AllowZoneDrifting
Close #44.

Configuration description taken from:

* https://firewalld.org/documentation/man-pages/firewalld.conf.html
2020-10-24 07:09:06 +01:00
Imran Iqbal
d32059bd2b
chore(gemfile+lock): update to latest gem versions (2020-W43) [skip ci]
* Automated using https://github.com/myii/ssf-formula/pull/273
2020-10-20 10:16:18 +01:00
Imran Iqbal
118eacff45
ci(pre-commit): finalise rstcheck configuration [skip ci]
* Automated using https://github.com/myii/ssf-formula/pull/267
2020-10-10 06:46:27 +01:00
Dafydd Jones
90cf74209a
chore(commitlint): add {body,footer,header}-max(-line)-length [skip ci]
* Automated using https://github.com/myii/ssf-formula/pull/265
2020-10-07 09:04:28 +01:00
Imran Iqbal
662630d5aa
chore(gemfile+lock): update to latest gem versions (2020-W41) [skip ci]
* Automated using https://github.com/myii/ssf-formula/pull/263
2020-10-07 00:02:49 +01:00
Imran Iqbal
c7e4dee62a
ci(pre-commit): enable/disable rstcheck as relevant [skip ci]
* Automated using https://github.com/myii/ssf-formula/pull/262
2020-10-05 00:18:58 +01:00
Dafydd Jones
9254027396
ci(pre-commit): add to formula [skip ci]
* Automated using https://github.com/myii/ssf-formula/pull/259
2020-10-03 10:22:12 +01:00
Imran Iqbal
0e7f431952 chore(gemfile.lock): update to latest gem versions (2020-W27) [skip ci]
* Automated using https://github.com/myii/ssf-formula/pull/235
2020-07-06 14:25:26 +01:00
Imran Iqbal
515b3a8a40 chore(gemfile.lock): update to latest gem versions (2020-W26) [skip ci]
* Automated using https://github.com/myii/ssf-formula/pull/233
2020-06-26 12:41:48 +01:00
Imran Iqbal
e7dcb91931 chore(gemfile.lock): update to latest gem versions (2020-W25) [skip ci]
* Automated using https://github.com/myii/ssf-formula/pull/229
2020-06-21 12:54:11 +01:00
Imran Iqbal
a33cd641e2 ci(kitchen): use saltimages Docker Hub where available [skip ci]
* Automated using https://github.com/myii/ssf-formula/pull/223
2020-06-15 16:52:02 +01:00
Imran Iqbal
ff53511110 chore(gemfile.lock): update to latest gem versions [skip ci]
* Automated using https://github.com/myii/ssf-formula/pull/222
2020-06-15 15:03:13 +01:00
Imran Iqbal
642d4606d8 chore(gemfile.lock): update to latest gem versions [skip ci]
* Automated using https://github.com/myii/ssf-formula/pull/221
2020-06-05 22:12:47 +01:00
Imran Iqbal
0d2c0a7700 chore(gemfile.lock): update to latest gem versions [skip ci]
* Automated using https://github.com/myii/ssf-formula/pull/202
2020-05-28 00:17:23 +01:00
Imran Iqbal
b6c60b27b9 ci(travis): add notifications => zulip [skip ci]
* Automated using https://github.com/myii/ssf-formula/pull/191
2020-05-21 20:05:44 +01:00
Imran Iqbal
6fa7f7a09d chore(codeowners): update semantic-release related files [skip ci]
* Automated using https://github.com/myii/ssf-formula/pull/174
2020-05-04 23:14:28 +01:00
Imran Iqbal
183b48a248 chore(codeowners): add to repo [skip ci]
* Automated using https://github.com/myii/ssf-formula/pull/173
2020-05-04 22:42:44 +01:00
Imran Iqbal
93853b643f ci(workflows/commitlint): add to repo [skip ci]
* Automated using https://github.com/myii/ssf-formula/pull/172
2020-05-04 09:28:06 +01:00
Imran Iqbal
24e115cacb ci(kitchen+travis): remove master-py2-arch-base-latest [skip ci]
* Automated using https://github.com/myii/ssf-formula/pull/167
2020-05-02 04:26:42 +01:00
Imran Iqbal
7a964e4738 ci(gemfile.lock): add to repo with updated Gemfile [skip ci]
* Automated using https://github.com/myii/ssf-formula/pull/163
2020-04-21 22:06:26 +01:00
semantic-release-bot
ad932260f0 chore(release): 1.0.0 [skip ci]
# [1.0.0](https://github.com/saltstack-formulas/firewalld-formula/compare/v0.10.1...v1.0.0) (2020-04-18)

### Bug Fixes

* do not error on unknown os_family grain ([94d2b0b](94d2b0b97c))

### Code Refactoring

* split default maps into separate files ([afcf5e7](afcf5e7700))

### Tests

* **yaml_dump_spec:** update after splitting `map.jinja` ([d1f7a37](d1f7a37171))

### BREAKING CHANGES

* `map.jinja` has been upgraded from using `pillar.get`
to `config.get`.
2020-04-18 15:10:55 +00:00
Imran Iqbal
fdd3dfbc62
Merge pull request #41 from Sxderp/pr-fix-unknown-os-family
fix: do not error on unknown os_family grain
2020-04-18 16:03:13 +01:00
Imran Iqbal
d1f7a37171
test(yaml_dump_spec): update after splitting map.jinja 2020-04-18 15:54:16 +01:00
Steven Daniele
afcf5e7700
refactor: split default maps into separate files
While the default maps are mostly empty this sets the groundwork for
distribution specific defaults. The layout is based on the formula
template.

BREAKING CHANGE: `map.jinja` has been upgraded from using `pillar.get`
to `config.get`.
2020-04-18 15:53:46 +01:00
Steven Daniele
94d2b0b97c
fix: do not error on unknown os_family grain
If the formula was ran on a system that reported an os_family that
wasn't one of "Debian", "RedHat", "Arch", "Suse" then the map.jinja
template would fail to render with "'NoneType' is not iterable.

This occurs because grains.filter_by will return None when it fails
match the grain to the input dictionary. The value is then blindly
passed into a dict.update() which causes the failure.

In this patch we ensure that the default values, as defined in
defaults.yaml, are always applied when grain matching fails.
2020-04-18 15:53:46 +01:00
semantic-release-bot
80587f9671 chore(release): 0.10.1 [skip ci]
## [0.10.1](https://github.com/saltstack-formulas/firewalld-formula/compare/v0.10.0...v0.10.1) (2020-04-18)

### Tests

* verify map output using `yaml_dump` ([69df9a6](69df9a62d6))
2020-04-18 14:52:23 +00:00
Imran Iqbal
51873948c2
Merge pull request #42 from myii/test/verify-yaml_dump
test: verify map output using `yaml_dump`
2020-04-18 15:44:43 +01:00
Imran Iqbal
69df9a62d6
test: verify map output using yaml_dump
* Semi-automated using https://github.com/myii/ssf-formula/pull/159
2020-04-18 15:29:52 +01:00
Imran Iqbal
95e26621f9 chore(rubocop): use org-wide standard settings for Metrics/BlockLength [skip ci]
* Automated using https://github.com/myii/ssf-formula/pull/158
2020-04-18 13:42:29 +01:00
semantic-release-bot
6ced9d9cfa chore(release): 0.10.0 [skip ci]
# [0.10.0](https://github.com/saltstack-formulas/firewalld-formula/compare/v0.9.0...v0.10.0) (2020-04-02)

### Bug Fixes

* **zone.xml:** adjust whitespacing to pass tests & macro at top of file ([d8f0f47](d8f0f47a54))

### Features

* allow rich_rules to be specified as a dict ([cd4cec0](cd4cec0089))

### Styles

* **zone.xml:** remove all trailing whitespaces ([204efe5](204efe5fc7))

### Tests

* **zones_spec:** check content of rendered zone files ([6ebfc6f](6ebfc6f20c))
2020-04-02 12:28:28 +00:00
Imran Iqbal
5c135df025
Merge pull request #40 from Sxderp/pr-add-dictionary-rich-rules2
Allow rich_rules to be specified as a dictionary
2020-04-02 13:19:52 +01:00
Imran Iqbal
c69fd6bf04
chore(rubocop): relax Metrics/BlockLength for new tests
* Checked using https://github.com/myii/ssf-formula/pull/145
2020-04-01 19:00:37 +01:00
Imran Iqbal
204efe5fc7
style(zone.xml): remove all trailing whitespaces 2020-04-01 19:00:37 +01:00
Imran Iqbal
d8f0f47a54
fix(zone.xml): adjust whitespacing to pass tests & macro at top of file 2020-04-01 19:00:37 +01:00
Imran Iqbal
6ebfc6f20c
test(zones_spec): check content of rendered zone files 2020-04-01 19:00:36 +01:00
Steven Daniele
cd4cec0089 feat: allow rich_rules to be specified as a dict
When specifying rich rules as a dictionary ipsets and services can be
specified as lists. They will be expanded out by the jinja template into
individual rich rules for the parent zone.
2020-03-30 09:01:27 -04:00
Imran Iqbal
cf21ccab97 chore(gitignore): update from the template-formula [skip ci]
* Automated using https://github.com/myii/ssf-formula/pull/132
2020-02-14 22:27:40 +00:00
Imran Iqbal
d02f890fb4 chore(rubocop): move LineLength cop from Metrics to Layout [skip ci]
* Automated using https://github.com/myii/ssf-formula/pull/129
2020-02-14 12:49:43 +00:00
semantic-release-bot
91362086a8 chore(release): 0.9.0 [skip ci]
# [0.9.0](https://github.com/saltstack-formulas/firewalld-formula/compare/v0.8.0...v0.9.0) (2020-02-12)

### Features

* **zone.xml:** allow more services definition inside zone ([8d0172f](8d0172f5c7))
2020-02-12 19:12:49 +00:00