firewallcustom
This module is build to manage custom firewall ports and services via firewall-cmd (Redhat 7 & above)
Version information
released Sep 22nd 2021
This version is compatible with:
- Puppet Enterprise 2023.2.x, 2023.1.x, 2023.0.x, 2021.7.x, 2021.6.x, 2021.5.x, 2021.4.x, 2021.3.x, 2021.2.x, 2021.1.x, 2021.0.x, 2019.8.x
- Puppet >= 6.21.0 < 8.0.0
- , , ,
Start using this module
Add this module to your Puppetfile:
mod 'hemantgangwar-firewallcustom', '1.0.0'
Learn more about managing modules with a PuppetfileDocumentation
hemantgangwar/firewallcustom — version 1.0.0 Sep 22nd 2021
firewallcustom
Welcome custom FIREWALL module. This is aiming towards managing system firewall rules by puppet
The README template below provides a starting point with details about what information to include in your README.
Table of Contents
Description
Starting point to manage your Linux firewall.
Pre-requisites
- Install Stdlib module version less than 5
puppet module install puppet-firewalld --version 4.4.0
- Install this module only on systemd based systems where one want to manage firewall using firewall-cmd command.
Resource-types
This module supports a number of resource types:
Firewalld Ports
Firewalld ports can be managed with the firewalld_port
resource type.
firewalld_port will autorequire
the firewalld_zone specified in the zone
parameter so there is no need to add dependencies for this
Example:
firewalld_port { 'Open TCP port 30000-32767 for Kubernetes':
ensure => present,
port => 30000-32767,
protocol => 'tcp',
}
Example in Hiera:
firewallcustom::ports:
'Open TCP port 30000-32767 for Kubernetes':
ensure: present
port: 30000-32767
protocol: 'tcp'