Showing with 546 additions and 303 deletions.
  1. +22 −0 .github/workflows/release.yml
  2. +25 −1 CHANGELOG.md
  3. +17 −31 Gemfile
  4. +8 −1 README.md
  5. +427 −265 REFERENCE.md
  6. +5 −3 lib/puppet/provider/firewalld_custom_service/firewall_cmd.rb
  7. +2 −2 metadata.json
  8. +40 −0 spec/acceptance/suites/default/00_default_spec.rb
22 changes: 22 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
---
# Managed by modulesync - DO NOT EDIT
# https://voxpupuli.org/docs/updating-files-managed-with-modulesync/

name: Release

on:
push:
tags:
- '*'

jobs:
release:
name: Release
uses: voxpupuli/gha-puppet/.github/workflows/release.yml@v1
with:
allowed_owner: 'voxpupuli'
secrets:
# Configure secrets here:
# https://docs.github.com/en/actions/security-guides/encrypted-secrets
username: ${{ secrets.PUPPET_FORGE_USERNAME }}
api_key: ${{ secrets.PUPPET_FORGE_API_KEY }}
26 changes: 25 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,30 @@ All notable changes to this project will be documented in this file.
Each new release typically also includes the latest modulesync defaults.
These should not affect the functionality of the module.

## [v4.5.0](https://github.com/voxpupuli/puppet-firewalld/tree/v4.5.0) (2022-08-15)

[Full Changelog](https://github.com/voxpupuli/puppet-firewalld/compare/v4.4.0...v4.5.0)

**Implemented enhancements:**

- firewalld modules reloads firewalld excessively [\#61](https://github.com/voxpupuli/puppet-firewalld/issues/61)

**Fixed bugs:**

- Trying to add custom service with protocols and not ports, results in an error on first run [\#306](https://github.com/voxpupuli/puppet-firewalld/issues/306)
- Fixes firewalld\_custom\_service where only protocols are defined [\#307](https://github.com/voxpupuli/puppet-firewalld/pull/307) ([nmaludy](https://github.com/nmaludy))

**Closed issues:**

- Support for Rocky Linux / Alma Linux ? [\#312](https://github.com/voxpupuli/puppet-firewalld/issues/312)
- Possible parse errors in hiera data input [\#305](https://github.com/voxpupuli/puppet-firewalld/issues/305)
- \[4.3.0\] Mising option to disable AllowZoneDrifting [\#294](https://github.com/voxpupuli/puppet-firewalld/issues/294)

**Merged pull requests:**

- Fix firewalld\_direct\_chain typo in README [\#313](https://github.com/voxpupuli/puppet-firewalld/pull/313) ([Vincevrp](https://github.com/Vincevrp))
- Allow stdlib 8.0.0 [\#310](https://github.com/voxpupuli/puppet-firewalld/pull/310) ([smortex](https://github.com/smortex))

## [v4.4.0](https://github.com/voxpupuli/puppet-firewalld/tree/v4.4.0) (2020-11-13)

[Full Changelog](https://github.com/voxpupuli/puppet-firewalld/compare/v4.3.0...v4.4.0)
Expand Down Expand Up @@ -34,8 +58,8 @@ The highlight of this release is a new native puppet type [`firewalld_custom_ser
**Implemented enhancements:**

- Parse arguments to passthrough provider with spaces correctly [\#278](https://github.com/voxpupuli/puppet-firewalld/pull/278) ([cmusik](https://github.com/cmusik))
- Add icmp-type support to rich rules [\#271](https://github.com/voxpupuli/puppet-firewalld/pull/271) ([ananace](https://github.com/ananace))
- Native firewalld custom service [\#277](https://github.com/voxpupuli/puppet-firewalld/pull/277) ([trevor-vaughan](https://github.com/trevor-vaughan))
- Add icmp-type support to rich rules [\#271](https://github.com/voxpupuli/puppet-firewalld/pull/271) ([ananace](https://github.com/ananace))

**Fixed bugs:**

Expand Down
48 changes: 17 additions & 31 deletions Gemfile
Original file line number Diff line number Diff line change
@@ -1,50 +1,36 @@
source ENV['GEM_SOURCE'] || "https://rubygems.org"

def location_for(place, fake_version = nil)
if place =~ /^(git[:@][^#]*)#(.*)/
[fake_version, { :git => $1, :branch => $2, :require => false }].compact
elsif place =~ /^file:\/\/(.*)/
['>= 0', { :path => File.expand_path($1), :require => false }]
else
[place, { :require => false }]
end
end
# Managed by modulesync - DO NOT EDIT
# https://voxpupuli.org/docs/updating-files-managed-with-modulesync/

source ENV['GEM_SOURCE'] || 'https://rubygems.org'

group :test do
gem 'voxpupuli-test', '~> 2.1', :require => false
gem 'coveralls', :require => false
gem 'simplecov-console', :require => false
gem 'mocha', '~> 1.10.0', :require => false
gem 'voxpupuli-test', '~> 5.4', :require => false
gem 'coveralls', :require => false
gem 'simplecov-console', :require => false
gem 'puppet_metadata', '~> 1.0', :require => false
gem 'mocha', '~> 1.10.0', :require => false
end

group :development do
gem 'travis', :require => false
gem 'travis-lint', :require => false
gem 'guard-rake', :require => false
gem 'overcommit', '>= 0.39.1', :require => false
end

group :system_tests do
gem 'voxpupuli-acceptance', :require => false
gem 'simp-beaker-helpers', :require => false
gem 'voxpupuli-acceptance', '~> 1.0', :require => false
gem 'simp-beaker-helpers', :require => false
end

group :release do
gem 'github_changelog_generator', :require => false, :git => 'https://github.com/voxpupuli/github-changelog-generator', :branch => 'voxpupuli_essential_fixes'
gem 'puppet-blacksmith', :require => false
gem 'voxpupuli-release', :require => false
gem 'puppet-strings', '>= 2.2', :require => false
gem 'github_changelog_generator', '>= 1.16.1', :require => false if RUBY_VERSION >= '2.5'
gem 'voxpupuli-release', '>= 1.2.0', :require => false
gem 'puppet-strings', '>= 2.2', :require => false
end

gem 'rake', :require => false
gem 'facter', ENV['FACTER_GEM_VERSION'], :require => false, :groups => [:test]


if facterversion = ENV['FACTER_GEM_VERSION']
gem 'facter', facterversion.to_s, :require => false, :groups => [:test]
else
gem 'facter', :require => false, :groups => [:test]
end

ENV['PUPPET_VERSION'].nil? ? puppetversion = '~> 6.0' : puppetversion = ENV['PUPPET_VERSION'].to_s
puppetversion = ENV['PUPPET_GEM_VERSION'] || '>= 6.0'
gem 'puppet', puppetversion, :require => false, :groups => [:test]

# vim: syntax=ruby
9 changes: 8 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -365,6 +365,13 @@ will produce:
<port protocol="tcp" port="8000-8002" />
```

* `protocols`: (Optional) An array of protocols allowed by the service as defined
in /etc/protocols.

```puppet
protocols => ['ospf'],
```

* `module`: (Optional) An array of strings specifying netfilter kernel helper
modules associated with this service

Expand Down Expand Up @@ -526,7 +533,7 @@ The title can also be mapped to the types namevars using a colon delimited
string, so the above can also be represented as

```puppet
firewall_direct_chain { 'ipv4:filter:LOG_DROPS':
firewalld_direct_chain { 'ipv4:filter:LOG_DROPS':
ensure => present,
}
```
Expand Down
Loading