]> review.fuel-infra Code Review - puppet-modules/puppetlabs-firewall.git/log
puppet-modules/puppetlabs-firewall.git
2 years agoMerge pull request #1123 from tobias-urdin/fix-selinux-context
david22swan [Wed, 14 Jun 2023 09:50:38 +0000 (10:50 +0100)]
Merge pull request #1123 from tobias-urdin/fix-selinux-context

Fix SELinux context on newer CentOS

2 years agoMerge pull request #1104 from cruelsmith/force-chain-delete
david22swan [Wed, 14 Jun 2023 09:40:22 +0000 (10:40 +0100)]
Merge pull request #1104 from cruelsmith/force-chain-delete

Force firewall chain delete

2 years agoMerge pull request #1140 from david22swan/CONT-242/main/duplicate_rule
Gavin Patton [Tue, 13 Jun 2023 14:30:44 +0000 (15:30 +0100)]
Merge pull request #1140 from david22swan/CONT-242/main/duplicate_rule

(CONT-242) Fix duplicate rule detection

2 years agoSyntax Updates
david22swan [Tue, 13 Jun 2023 09:59:15 +0000 (10:59 +0100)]
Syntax Updates

2 years agoSyntax updates
david22swan [Thu, 8 Jun 2023 10:13:58 +0000 (11:13 +0100)]
Syntax updates

2 years ago(CONT-242) Fix duplicate rule detection
david22swan [Wed, 7 Jun 2023 16:47:59 +0000 (17:47 +0100)]
(CONT-242) Fix duplicate rule detection

This was previously accomplished b retrieving the full list of rules each time a rule was set in order to check it was unique. This was to allow the user to choose the response to a duplicate rule being found.

However this caused a massive slowdown within certain module runs and as such we have changed the the location of the check, so that it instead runs a check for any duplicates when retrieving the current rules prior to any updates being made.

As an effect of this the user is now unable to choose the response to a duplicate rule being found, however wee feel that this is a fair tradeoff for the increased speed and that the response that we have chosen is the correct one.

2 years agoMerge pull request #1135 from puppetlabs/pdksync_CONT-1028-update-stdlib-dependency
jordanbreen28 [Tue, 6 Jun 2023 10:33:08 +0000 (11:33 +0100)]
Merge pull request #1135 from puppetlabs/pdksync_CONT-1028-update-stdlib-dependency

pdksync - (MAINT) - Allow Stdlib 9.x

2 years agoBump minimum required stdlib version pdksync_CONT-1028-update-stdlib-dependency
Lukas Audzevicius [Mon, 5 Jun 2023 14:18:23 +0000 (15:18 +0100)]
Bump minimum required stdlib version

Namespacing was introduced in Stdlib v9.0.0 and onwards, therefore any module affected by it need a minimum bump.

Co-authored-by: Tim Meusel <tim@bastelfreak.de>
2 years agoAddress namespaced functions
Lukas Audzevicius [Mon, 5 Jun 2023 13:48:18 +0000 (14:48 +0100)]
Address namespaced functions

2 years ago(CONT-1028) - Update Stdlib upper limit dependency
Lukas Audzevicius [Tue, 30 May 2023 16:13:18 +0000 (17:13 +0100)]
(CONT-1028) - Update Stdlib upper limit dependency

2 years agoMerge pull request #1130 from puppetlabs/pdksync_CONT-1001-update_litmus_dep
jordanbreen28 [Wed, 24 May 2023 09:18:35 +0000 (10:18 +0100)]
Merge pull request #1130 from puppetlabs/pdksync_CONT-1001-update_litmus_dep

pdksync - (CONT-1001) Add litmus ~> 1.0

2 years ago(CONT-1001) Add litmus ~> 1.0 pdksync_CONT-1001-update_litmus_dep
Ramesh Sencha [Tue, 23 May 2023 10:46:24 +0000 (16:16 +0530)]
(CONT-1001) Add litmus ~> 1.0

2 years agoMerge pull request #1129 from puppetlabs/pdksync_CONT-930-rollout_new_gh-changelog
Lukas Audzevicius [Mon, 15 May 2023 13:47:16 +0000 (14:47 +0100)]
Merge pull request #1129 from puppetlabs/pdksync_CONT-930-rollout_new_gh-changelog

pdksync - (CONT-930) - Roll out new changelog generator

2 years ago(CONT-930) - Roll out new changelog generator pdksync_CONT-930-rollout_new_gh-changelog
jordanbreen28 [Mon, 15 May 2023 13:17:42 +0000 (14:17 +0100)]
(CONT-930) - Roll out new changelog generator

2 years agoFix SELinux context on newer CentOS
Tobias Urdin [Tue, 2 May 2023 13:15:52 +0000 (13:15 +0000)]
Fix SELinux context on newer CentOS

Fix the SELinux contexts for CentOS Stream 8
and CentOS Stream 9.

2 years agoMerge pull request #1122 from puppetlabs/pdksync_CONT-844-update_.sync.yml
Lukas Audzevicius [Wed, 5 Apr 2023 10:42:11 +0000 (11:42 +0100)]
Merge pull request #1122 from puppetlabs/pdksync_CONT-844-update_.sync.yml

pdksync - (CONT-844) - Update .sync.yml

2 years ago(CONT-844) - Update .sync.yml pdksync_CONT-844-update_.sync.yml
jordanbreen28 [Wed, 5 Apr 2023 09:48:59 +0000 (10:48 +0100)]
(CONT-844) - Update .sync.yml

2 years agoMerge pull request #1121 from puppetlabs/release-prep v5.0.0
david22swan [Fri, 31 Mar 2023 16:27:35 +0000 (17:27 +0100)]
Merge pull request #1121 from puppetlabs/release-prep

Release prep v5.0.0

2 years agoRelease prep v5.0.0
GitHub Actions [Fri, 31 Mar 2023 14:54:37 +0000 (14:54 +0000)]
Release prep v5.0.0

2 years agoMerge pull request #1118 from david22swan/CONT-779/puppet_8_clean
Gavin Patton [Fri, 31 Mar 2023 14:44:46 +0000 (15:44 +0100)]
Merge pull request #1118 from david22swan/CONT-779/puppet_8_clean

(Cont 779) Add Support for Puppet 8 / Drop Support for Puppet 6

2 years agoMerge pull request #1120 from puppetlabs/release-prep v4.1.0
david22swan [Fri, 31 Mar 2023 13:59:50 +0000 (14:59 +0100)]
Merge pull request #1120 from puppetlabs/release-prep

Release prep v4.1.0

2 years agoRelease prep v4.1.0
GitHub Actions [Fri, 31 Mar 2023 13:50:29 +0000 (13:50 +0000)]
Release prep v4.1.0

2 years ago(MAINT) PDK Update
david22swan [Wed, 29 Mar 2023 09:36:15 +0000 (10:36 +0100)]
(MAINT) PDK Update

2 years ago(CONT-799) Update Rubocop Versions
david22swan [Wed, 29 Mar 2023 09:22:40 +0000 (10:22 +0100)]
(CONT-799) Update Rubocop Versions

New Versions:
rubocop = 1.48.1
rubocop-performance = 1.16.0
rubocop-rspec = 2.19.0

Also includes the reactivation of all previously disabled Cops

2 years ago(CONT-799) Unpin puppet_litmus
david22swan [Tue, 28 Mar 2023 14:44:22 +0000 (15:44 +0100)]
(CONT-799) Unpin puppet_litmus

2 years ago(CONT-779) Unpin puppet_agent
david22swan [Tue, 28 Mar 2023 14:43:32 +0000 (15:43 +0100)]
(CONT-779) Unpin puppet_agent

2 years ago(CONT-779) Move Puppet version support
david22swan [Tue, 28 Mar 2023 14:43:02 +0000 (15:43 +0100)]
(CONT-779) Move Puppet version support

2 years agoMerge pull request #1117 from puppetlabs/pdksync_CONT-826/main/pin_puppet_litmus
Lukas Audzevicius [Tue, 28 Mar 2023 13:34:39 +0000 (14:34 +0100)]
Merge pull request #1117 from puppetlabs/pdksync_CONT-826/main/pin_puppet_litmus

pdksync - CONT-826/main/pin_puppet_litmus

2 years ago(CONT-826) Temporarily pin puppet_litmus to 0.34.6 or less pdksync_CONT-826/main/pin_puppet_litmus
david22swan [Tue, 28 Mar 2023 10:17:34 +0000 (11:17 +0100)]
(CONT-826) Temporarily pin puppet_litmus to 0.34.6 or less

2 years agoMerge pull request #1115 from puppetlabs/CONT-751-Implement_reusable_workflows
david22swan [Fri, 24 Mar 2023 16:37:20 +0000 (16:37 +0000)]
Merge pull request #1115 from puppetlabs/CONT-751-Implement_reusable_workflows

(CONT-752) - Implement reusable workflows

2 years ago(CONT-752) - Implement reusable workflows CONT-751-Implement_reusable_workflows
jordanbreen28 [Mon, 20 Mar 2023 13:40:20 +0000 (13:40 +0000)]
(CONT-752) - Implement reusable workflows

2 years agoMerge pull request #1113 from puppetlabs/maint-pin_puppet_agent_fixture
jordanbreen28 [Tue, 21 Mar 2023 15:57:16 +0000 (15:57 +0000)]
Merge pull request #1113 from puppetlabs/maint-pin_puppet_agent_fixture

(MAINT) Pin puppetlabs-puppet_agent

2 years ago(MAINT) Pin puppetlabs-puppet_agent maint-pin_puppet_agent_fixture
Craig Gumbley [Tue, 21 Mar 2023 10:18:04 +0000 (10:18 +0000)]
(MAINT) Pin puppetlabs-puppet_agent

This change pins the puppetlabs-puppet_agent module to v4.12.1.

Previosuly, the fixutre was configured to pull from main. Given the
recent changes when moving towards puppet8, main is unsafe.

2 years agoMerge pull request #1107 from buzzdeee/main
david22swan [Wed, 8 Mar 2023 09:57:52 +0000 (09:57 +0000)]
Merge pull request #1107 from buzzdeee/main

Ignore OpenBSD, similarly to FreeBSD

2 years agoMerge pull request #1110 from puppetlabs/CONT-352-Syntax_update
david22swan [Wed, 8 Mar 2023 09:57:19 +0000 (09:57 +0000)]
Merge pull request #1110 from puppetlabs/CONT-352-Syntax_update

(CONT-352) Syntax update

2 years agobugfix CONT-352-Syntax_update
Lukas Audzevicius [Thu, 16 Feb 2023 14:51:07 +0000 (14:51 +0000)]
bugfix

2 years agoparameter datatypes
Lukas Audzevicius [Tue, 14 Feb 2023 16:53:04 +0000 (16:53 +0000)]
parameter datatypes

2 years agotop scope facts
Lukas Audzevicius [Tue, 14 Feb 2023 11:25:18 +0000 (11:25 +0000)]
top scope facts

2 years agorelative classname inclusion
Lukas Audzevicius [Tue, 14 Feb 2023 11:09:45 +0000 (11:09 +0000)]
relative classname inclusion

2 years ago(CONT-352) Syntax update
Lukas Audzevicius [Tue, 14 Feb 2023 11:01:42 +0000 (11:01 +0000)]
(CONT-352) Syntax update

Code now compliant with rules regarding:

legacy facts

2 years agoMerge pull request #1108 from puppetlabs/pdksync_CONT-211-add_mend_config
Lukas Audzevicius [Wed, 1 Feb 2023 15:11:46 +0000 (15:11 +0000)]
Merge pull request #1108 from puppetlabs/pdksync_CONT-211-add_mend_config

pdksync - (CONT-211) Adding mend config

2 years agoAdding mend file pdksync_CONT-211-add_mend_config
Paula Muir [Wed, 1 Feb 2023 12:04:54 +0000 (12:04 +0000)]
Adding mend file

2 years agoMerge pull request #1095 from ahrefs/main
Lukas Audzevicius [Fri, 27 Jan 2023 12:12:39 +0000 (12:12 +0000)]
Merge pull request #1095 from ahrefs/main

debian: service: fix `ensure` parameter usage

2 years agoIgnore OpenBSD, similarly to FreeBSD
Sebastian Reitenbach [Wed, 25 Jan 2023 10:52:43 +0000 (11:52 +0100)]
Ignore OpenBSD, similarly to FreeBSD

2 years agoMerge pull request #1106 from puppetlabs/pdksync_CONT-494/pin_github_changelog_generator
jordanbreen28 [Wed, 18 Jan 2023 16:04:01 +0000 (16:04 +0000)]
Merge pull request #1106 from puppetlabs/pdksync_CONT-494/pin_github_changelog_generator

pdksync - (CONT-494) Pin github_changelog_generator and JSON gem versions

2 years ago(CONT-494) Fix for .sync.yml pdksync_CONT-494/pin_github_changelog_generator
david22swan [Wed, 18 Jan 2023 14:20:37 +0000 (14:20 +0000)]
(CONT-494) Fix for .sync.yml

2 years ago(CONT-494) PDK Update
david22swan [Tue, 17 Jan 2023 18:12:32 +0000 (18:12 +0000)]
(CONT-494) PDK Update

2 years ago(CONT-494) Pin github_changelog_generator gem version
david22swan [Tue, 17 Jan 2023 18:02:56 +0000 (18:02 +0000)]
(CONT-494) Pin github_changelog_generator gem version

2 years agoMerge pull request #1103 from robertc99/main
Lukas Audzevicius [Mon, 9 Jan 2023 10:14:12 +0000 (10:14 +0000)]
Merge pull request #1103 from robertc99/main

redhat9 needs iptables service

2 years agofirewall: tests: add required `facts` declarations
Damon Breeden [Fri, 6 Jan 2023 19:20:32 +0000 (19:20 +0000)]
firewall: tests: add required `facts` declarations

https://github.com/puppetlabs/puppetlabs-firewall/actions/runs/3857494896/jobs/6575029953#step:9:1110

2 years agofirewall: tests: add `debian` tests for `ensure => stopped`
Damon Breeden [Fri, 6 Jan 2023 18:17:09 +0000 (18:17 +0000)]
firewall: tests: add `debian` tests for `ensure => stopped`

also `with Debian unstable, ensure => stopped`, seems to have been overlooked

2 years agofirewall: tests: update `contain_service` to `running` for `debian`
Damon Breeden [Fri, 6 Jan 2023 17:08:03 +0000 (17:08 +0000)]
firewall: tests: update `contain_service` to `running` for `debian`

bc its necessary with the new changes https://github.com/puppetlabs/puppetlabs-firewall/pull/1095#issuecomment-1339654976

2 years agoMerge branch 'puppetlabs:main' into main
damonbreeden [Fri, 6 Jan 2023 16:59:36 +0000 (11:59 -0500)]
Merge branch 'puppetlabs:main' into main

2 years agoForce firewall chain delete
cruelsmith [Mon, 2 Jan 2023 16:31:22 +0000 (17:31 +0100)]
Force firewall chain delete

Flush chain to get rid of unmanaged firewall rules in that chain
else the remove of the chain will fail.

2 years agoredhat9 needs iptables service
Robert Cohen [Fri, 23 Dec 2022 03:43:47 +0000 (14:43 +1100)]
redhat9 needs iptables service

2 years agoMerge pull request #1101 from puppetlabs/pdksync_maint-remove_stale_bot
Gavin Patton [Tue, 13 Dec 2022 10:30:31 +0000 (10:30 +0000)]
Merge pull request #1101 from puppetlabs/pdksync_maint-remove_stale_bot

pdksync - (MAINT) Remove stalebot

2 years ago(MAINT) Remove stalebot workflow pdksync_maint-remove_stale_bot
Craig Gumbley [Tue, 13 Dec 2022 10:00:15 +0000 (10:00 +0000)]
(MAINT) Remove stalebot workflow

2 years agoMerge pull request #1099 from puppetlabs/release-prep v4.0.1
jordanbreen28 [Wed, 7 Dec 2022 09:42:49 +0000 (09:42 +0000)]
Merge pull request #1099 from puppetlabs/release-prep

Release prep v4.0.1

2 years agoRelease prep v4.0.1
GitHub Action [Tue, 6 Dec 2022 19:13:57 +0000 (19:13 +0000)]
Release prep v4.0.1

2 years ago(GH-1097) Bumping back required puppet version (#1098)
Lukas Audzevicius [Tue, 6 Dec 2022 17:11:17 +0000 (17:11 +0000)]
(GH-1097) Bumping back required puppet version (#1098)

Prior to this commit, due to a mistake, there was a reversion to the
previously implemented bump to minimum required puppet version, which
was part of the CVE update.

This commit aims to address issue 1097 in Github which brings to light
the need for this puppet bump to be restored to 6.24

2 years agoMerge pull request #1094 from puppetlabs/1093-fix_unresolved_fact_error
Lukas Audzevicius [Tue, 6 Dec 2022 15:34:29 +0000 (15:34 +0000)]
Merge pull request #1094 from puppetlabs/1093-fix_unresolved_fact_error

(1093) - Fix unresolved fact error

2 years ago(1093) - Fix unresolved fact error 1093-fix_unresolved_fact_error
jordanbreen28 [Tue, 29 Nov 2022 12:28:58 +0000 (12:28 +0000)]
(1093) - Fix unresolved fact error

Prior to this commit, work was carried out on this module to update all instances of the now deprecated Facter::Util::Resolution, and replace all with its newer and supported counterpart Facter::Core::Execution.
However, these do not behave exactly the same. Facter::Util::Resolution initially ran a which to locate the binary before executing, preventing any errors from occuring. The newer Facter::Core::Execution method did not do this, instead it attempted to execut>

This commit aims to introduce an "on_fail:false" flag to each execute statement, so that a failed execute will return false (boolean) as oppose to an error, which can then be used for further logic.

2 years agoMerge pull request #1085 from kjetilho/fix/iptables-el9
jordanbreen28 [Tue, 6 Dec 2022 11:14:05 +0000 (11:14 +0000)]
Merge pull request #1085 from kjetilho/fix/iptables-el9

package "iptables" has been replaced by "iptables-nft" on EL9

2 years agopackage "iptables" has been replaced by "iptables-nft" on EL9
Kjetil Torgrim Homme [Sun, 6 Nov 2022 16:00:40 +0000 (17:00 +0100)]
package "iptables" has been replaced by "iptables-nft" on EL9

There are some pointers given by dnf about "iptables", but these confuse
Puppet into aborting with the error message:

```console
Error: /Stage[main]/Firewall::Linux/Package[iptables]: Could not evaluate: no implicit conversion of Array into Hash
```

Fedora had a similar patch in commit 486e4b5779f5069e which I think
fixed the bug https://tickets.puppetlabs.com/browse/MODULES-11147 but
the same issue rared its head here on AlmaLinux 9.0.

The RPM for iptables-legacy states:

> This package contains the legacy tools which are obsoleted by
> nft-variants in iptables-nft package for backwards compatibility reasons.
> If you need to set up firewalls and/or IP masquerading, you should not install
> this package but either nftables or iptables-nft instead.

2 years agoMerge pull request #1096 from kjetilho/fix/nflog_size
jordanbreen28 [Tue, 6 Dec 2022 08:37:13 +0000 (08:37 +0000)]
Merge pull request #1096 from kjetilho/fix/nflog_size

2 years agosupport --nflog-size as replacement for --nflog-range
Kjetil Torgrim Homme [Mon, 5 Dec 2022 11:22:59 +0000 (12:22 +0100)]
support --nflog-size as replacement for --nflog-range

--nflog-range was deprecated way back in 2016.

https://git.netfilter.org/iptables/commit/?h=v1.6.1&id=7070b1f3c88a0c3d4e315c00cca61f05b0fbc882

2 years agodebian: service: fix `ensure` parameter usage
Damon Breeden [Fri, 2 Dec 2022 16:04:56 +0000 (16:04 +0000)]
debian: service: fix `ensure` parameter usage

`ensure` is defined but not used anywhere, no clear way to ensure the service is running
(and makes it impossible to do so outside the module)

2 years agoMerge pull request #1092 from puppetlabs/release-prep v4.0.0
Lukas Audzevicius [Tue, 22 Nov 2022 10:25:31 +0000 (10:25 +0000)]
Merge pull request #1092 from puppetlabs/release-prep

Release prep v4.0.0

2 years agoRelease prep v4.0.0
GitHub Action [Tue, 22 Nov 2022 00:21:14 +0000 (00:21 +0000)]
Release prep v4.0.0

2 years agoMerge pull request #1059 from cmusik/main
jordanbreen28 [Mon, 21 Nov 2022 15:12:16 +0000 (15:12 +0000)]
Merge pull request #1059 from cmusik/main

add support for using rpfilter in rules

2 years agoadd support for using multiple rpfilter options in rules
Christof Musik [Mon, 18 Jul 2022 13:37:32 +0000 (15:37 +0200)]
add support for using multiple rpfilter options in rules

2 years agoMerge pull request #1090 from puppetlabs/revert-1088-CONT-5-raise_minimum_puppet_required
david22swan [Mon, 21 Nov 2022 14:27:59 +0000 (14:27 +0000)]
Merge pull request #1090 from puppetlabs/revert-1088-CONT-5-raise_minimum_puppet_required

Revert "(CONT-5) Raising minimum required puppet version"

2 years agoRevert "(CONT-5) Raising minimum required puppet version" revert-1088-CONT-5-raise_minimum_puppet_required
Lukas Audzevicius [Mon, 21 Nov 2022 12:00:55 +0000 (12:00 +0000)]
Revert "(CONT-5) Raising minimum required puppet version"

2 years agoMerge pull request #1087 from puppetlabs/CONT-5-Codebase_hardening
jordanbreen28 [Thu, 10 Nov 2022 10:43:36 +0000 (10:43 +0000)]
Merge pull request #1087 from puppetlabs/CONT-5-Codebase_hardening

(CONT-5) Codebase hardening

2 years agoMerge pull request #1088 from puppetlabs/CONT-5-raise_minimum_puppet_required
jordanbreen28 [Wed, 9 Nov 2022 14:22:56 +0000 (14:22 +0000)]
Merge pull request #1088 from puppetlabs/CONT-5-raise_minimum_puppet_required

(CONT-5) Raising minimum required puppet version

2 years ago(CONT-5) Raising minimum required puppet version CONT-5-raise_minimum_puppet_required
Lukas Audzevicius [Wed, 9 Nov 2022 10:49:13 +0000 (10:49 +0000)]
(CONT-5) Raising minimum required puppet version

Prior to this commit, and as part of the codebase hardening project, we
sanitised some commands in the module. However, this sanitisation
method requires that users have at least puppet version 6.24.0 and
onwards to be effective.

This commit aims to resolve that requirement by raising the required
puppet version in the metadata.json file.

2 years ago(CONT-5) Codebase hardening CONT-5-Codebase_hardening
Lukas Audzevicius [Tue, 8 Nov 2022 13:54:22 +0000 (13:54 +0000)]
(CONT-5) Codebase hardening

Prior to this commit, and after the work perform in CONT-256, there were
a few commands in the module that were not properly sanitised according
to our current standards.

This PR aims to implement some changes that ensure no malformed commands
are passed through to the system. Primarily, the commands targeted were
the ones related to Open3 and exec.

2 years agoMerge pull request #1084 from puppetlabs/CONT-256-module_cleanup
david22swan [Fri, 4 Nov 2022 16:43:13 +0000 (16:43 +0000)]
Merge pull request #1084 from puppetlabs/CONT-256-module_cleanup

(CONT-256) Removing outdated code

2 years agoAddressing comments CONT-256-module_cleanup
Lukas Audzevicius [Thu, 3 Nov 2022 15:15:19 +0000 (15:15 +0000)]
Addressing comments

2 years agoRubocop corrections
Lukas Audzevicius [Thu, 3 Nov 2022 15:11:25 +0000 (15:11 +0000)]
Rubocop corrections

2 years agoRemove/Adjust Spec test cases
Lukas Audzevicius [Thu, 3 Nov 2022 14:12:59 +0000 (14:12 +0000)]
Remove/Adjust Spec test cases

2 years ago(CONT-256) Removing outdated code
Lukas Audzevicius [Thu, 3 Nov 2022 12:14:51 +0000 (12:14 +0000)]
(CONT-256) Removing outdated code
Prior to this commit, the firewall modules had multiple instances of
outdated code.

This commit aims to clean-up some of that code to keep the module clean
and readable.

2 years agoMerge pull request #1079 from puppetlabs/cont-173/main/updating_deprecated_facter
Paula Muir [Fri, 21 Oct 2022 09:00:35 +0000 (10:00 +0100)]
Merge pull request #1079 from puppetlabs/cont-173/main/updating_deprecated_facter

(CONT-173) - Updating deprecated facter instances

2 years ago(CONT-173) - Updating deprecated facter instances cont-173/main/updating_deprecated_facter
jordanbreen28 [Thu, 13 Oct 2022 12:39:26 +0000 (13:39 +0100)]
(CONT-173) - Updating deprecated facter instances

Prior to this PR, this module contained instances of Facter::Util::Resolution.exec and Facter::Util::Resolution.which, which are deprecated.
This PR aims to replace these exec helpers with their supported Facter::Core::Execution counterparts.

This PR:

Replaced all Facter::Util::Resolution instances with corresponding Facter::Core::Execution exec helpers

2 years agoMerge pull request #1081 from puppetlabs/revert-1066-match-mark-negate
Craig Gumbley [Thu, 20 Oct 2022 21:05:26 +0000 (22:05 +0100)]
Merge pull request #1081 from puppetlabs/revert-1066-match-mark-negate

Revert "Add negate to match_mark"

2 years agofix lint revert-1066-match-mark-negate
Paula Muir [Thu, 20 Oct 2022 15:08:40 +0000 (16:08 +0100)]
fix lint

2 years agoRevert "Add negate to match_mark"
Paula Muir [Thu, 20 Oct 2022 15:04:27 +0000 (16:04 +0100)]
Revert "Add negate to match_mark"

2 years agoMerge pull request #1066 from Enapter/match-mark-negate
david22swan [Mon, 10 Oct 2022 13:33:24 +0000 (14:33 +0100)]
Merge pull request #1066 from Enapter/match-mark-negate

Add negate to match_mark

2 years agoMerge pull request #1078 from puppetlabs/pdksync_CONT-189/remove_os_support
Lukas Audzevicius [Fri, 7 Oct 2022 10:28:23 +0000 (11:28 +0100)]
Merge pull request #1078 from puppetlabs/pdksync_CONT-189/remove_os_support

pdksync - (CONT-189) Remove support for RedHat6 / OracleLinux6 / Scientific6

2 years ago(CONT-189) Remove support for Scientific6 pdksync_CONT-189/remove_os_support
david22swan [Fri, 7 Oct 2022 09:02:38 +0000 (10:02 +0100)]
(CONT-189) Remove support for Scientific6

2 years ago(CONT-189) Remove support for OracleLinux6
david22swan [Fri, 7 Oct 2022 09:01:56 +0000 (10:01 +0100)]
(CONT-189) Remove support for OracleLinux6

2 years ago(CONT-189) Remove support for RedHat6
david22swan [Fri, 7 Oct 2022 09:00:50 +0000 (10:00 +0100)]
(CONT-189) Remove support for RedHat6

2 years agoMerge pull request #1077 from puppetlabs/pdksync_pdksync/remove_puppet_module_gems
Craig Gumbley [Thu, 6 Oct 2022 10:08:11 +0000 (11:08 +0100)]
Merge pull request #1077 from puppetlabs/pdksync_pdksync/remove_puppet_module_gems

pdksync - (PDKSync) Removal of puppet_module_gems

2 years agoMerge pull request #1075 from puppetlabs/pdksync_remove_debian_9
Lukas Audzevicius [Thu, 6 Oct 2022 09:56:48 +0000 (10:56 +0100)]
Merge pull request #1075 from puppetlabs/pdksync_remove_debian_9

pdksync - (CONT-130) - Dropping Support for Debian 9

2 years ago(PDKSync) Removal of puppet_module_gems pdksync_pdksync/remove_puppet_module_gems
david22swan [Thu, 6 Oct 2022 08:52:40 +0000 (09:52 +0100)]
(PDKSync) Removal of puppet_module_gems

2 years ago(CONT-130) Dropping Debian 9 Support pdksync_remove_debian_9
jordanbreen28 [Wed, 5 Oct 2022 10:28:13 +0000 (11:28 +0100)]
(CONT-130) Dropping Debian 9 Support

2 years agoMerge pull request #1023 from kjetilho/fix_string_to_port
jordanbreen28 [Tue, 4 Oct 2022 10:44:56 +0000 (11:44 +0100)]
Merge pull request #1023 from kjetilho/fix_string_to_port

fix service port number lookup to use protocol

2 years agofix spurious fail, http/udp does not exist in test harness
Kjetil Torgrim Homme [Wed, 1 Dec 2021 21:31:32 +0000 (22:31 +0100)]
fix spurious fail, http/udp does not exist in test harness

Switch to "talk" (port 517), since that is an UDP only service in the default Debian and RedHat /etc/services.

2 years agofix service port number lookup to use protocol
Kjetil Torgrim Homme [Wed, 1 Dec 2021 20:53:26 +0000 (21:53 +0100)]
fix service port number lookup to use protocol

The existing code passes `:proto`, which `string_to_port` casts to a
string, gets "proto", compares that to the possibilities "udp" or "tcp",
and when neither, falls back to using "tcp".

This patch passes the actual proto value to the function, in case there is
a UDP specific service in your /etc/services (uncommon, but it happens).
It looks like Puppet will evaluate the properties in declared order,
so I had to move `newproperty(:proto)` up so `@resource[:proto]` was
available in the code for `sport`, `dport` and `port`.

2 years agoMerge pull request #1074 from puppetlabs/release_prep_v3.6.0 v3.6.0
GSPatton [Mon, 3 Oct 2022 15:32:04 +0000 (16:32 +0100)]
Merge pull request #1074 from puppetlabs/release_prep_v3.6.0

Release prep v3.6.0