firewalld2iptables
Version information
This version is compatible with:
- Puppet Enterprise 2017.2.x, 2017.1.x, 2016.5.x, 2016.4.x
- Puppet >= 2.7.0 < 5.0.0
- ,
Start using this module
Add this module to your Puppetfile:
mod 'genebean-firewalld2iptables', '0.2.0'
Learn more about managing modules with a PuppetfileDocumentation
firewalld2iptables
Table of Contents
Overview
This module takes care of performing the conversion described at https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Linux/7/html/Security_Guide/sec-Using_Firewalls.html#sec-Using_iptables
Parameters:
manage_package
Installs the iptables-services package when true,
which is the default value.
type: boolean
iptables_ensure
This value is passed to the ensure key of the resource. This should be 'present' or 'latest'. The default value is 'present'.
iptables_enable
Determines if iptables is enabled.
Defaults to true.
type: boolean
ip6tables_enable
Determines if ip6tables is enabled.
Defaults to true.
type: boolean
Usage:
Simple usage:
include ::firewalld2iptables
In manifests that also utilize puppetlabs-firewall
or other methdods of configuring iptables you
need to ensure that this is run first. To do that, just change the include line to require like so:
require ::firewalld2iptables
Manage the iptables-services package elsewhere
class { '::firewalld2iptables': $manage_package => false, }
Limitations
This module is targeted at systems that are known to include firewalld
. Right now, that is solely the Red Hat 7 family
of OS's. Contributions to expand coverage to other OS's are welcome.
License
This is released under the New BSD / BSD-3-Clause license. A copy of the license can be found in the root of the module.
Contributing
Pull requests are welcome!
Copyright (c) 2015, Gene Liverman All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. * Neither the name of genebean-winbind nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.