Version information
This version is compatible with:
- Puppet Enterprise 2019.8.x, 2019.7.x, 2019.5.x, 2019.4.x, 2019.3.x, 2019.2.x, 2019.1.x, 2019.0.x, 2018.1.x, 2017.3.x, 2017.2.x, 2016.4.x
- Puppet >= 4.10.0 < 7.0.0
- ,
Start using this module
Add this module to your Puppetfile:
mod 'thor77-ferm', '0.1.2'
Learn more about managing modules with a PuppetfileDocumentation
puppet-ferm
Module to manage ferm
Usage
class { 'ferm':
rules => {
'01 policy drop' => {
policy => 'drop',
action => '',
},
'02 allow ssh' => {
proto => 'tcp',
dport => '22',
},
}
}
Limitations
- currently only Debian and Archlinux are supported
- no tests
Reference
Table of Contents
Classes
ferm
: Ferm module init classferm::config
: Manage ferm configurationferm::install
: Manage ferm installationferm::params
: Default parametersferm::service
: Manage ferm service
Functions
Classes
ferm
Ferm module init class
Parameters
The following parameters are available in the ferm
class.
rules
Data type: Hash
rules to render in config file
Default value: {}
rule_defaults
Data type: Hash
defaults for rule, will be merged with each rule
Default value: $ferm::params::rule_defaults
package_name
Data type: String
name of the ferm package
Default value: $ferm::params::package_name
package_version
Data type: String
target version/state of the ferm package resource
Default value: $ferm::params::package_version
service_name
Data type: String
name of the ferm service
Default value: $ferm::params::service_name
config_path
Data type: String
path to ferm config file
Default value: $ferm::params::config_path
ferm::config
Manage ferm configuration
ferm::install
Manage ferm installation
ferm::params
Default parameters
ferm::service
Manage ferm service
Functions
ferm::build_rule
Type: Ruby 4.x API
The ferm::build_rule function.
ferm::build_rule(Hash $rule, Hash $rule_defaults, Optional[String] $comment)
The ferm::build_rule function.
Returns: String
rule
Data type: Hash
rule_defaults
Data type: Hash
comment
Data type: Optional[String]