Resource Type: firewalld_service

Defined in:
lib/puppet/type/firewalld_service.rb
Providers:
firewall_cmd

Summary

Assigns a service to a specific firewalld zone.

Overview

Assigns a service to a specific firewalld zone.

‘firewalld_service` will autorequire the `firewalld_zone` specified in the `zone` parameter or the `firewalld_policy` specified in the `policy` parameter and the `firewalld::custom_service` specified in the `service` parameter. There is no need to manually add dependencies for this.

Examples:

Allowing SSH

firewalld_service {'Allow SSH in the public Zone':
    ensure  => present,
    zone    => 'public',
    service => 'ssh',
}

Properties

  • ensure (defaults to: present)

    Manage the state of this type.

    Supported values:
    • present
    • absent

Parameters

  • name (namevar)

    Name of the service resource in Puppet

  • policy (defaults to: unset)

    Name of the policy to which you want to add the service, exactly one of zone and policy must be supplied

  • provider

    The specific backend to use for this ‘firewalld_service` resource. You will seldom need to specify this — Puppet will usually discover the appropriate provider for your platform.

  • service

    Name of the service to add

  • zone (defaults to: unset)

    Name of the zone to which you want to add the service, exactly one of zone and policy must be supplied