Resource Type: firewalld_custom_service

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

Summary

Creates a custom firewalld service.

Overview

You will still need to create a ‘firewalld_service` resource to bind your new service to a zone.

Examples:

Creating a custom ‘test’ service

firewalld_custom_service {'test':
    ensure  => present,
    ports   => [{'port' => '1234', 'protocol' => 'tcp'}]
}

Properties

  • description

    The long description of the service

    Supported values:
    • %r{.+}
  • ensure (defaults to: present)

    Manage the state of this type.

    Supported values:
    • present
    • absent
  • ipv4_destination (defaults to: unset)

    The IPv4 destination network of the service

  • ipv6_destination (defaults to: unset)

    The IPv6 destination network of the service

  • modules (defaults to: unset)

    The list of netfilter modules to add to the service

    Supported values:
    • %r{^[\w-]+$}
  • ports (defaults to: unset)

    An Array of allowed port/protocol Hashes or Strings of the form ‘port/protocol`

  • protocols (defaults to: unset)

    Protocols allowed by the service as defined in /etc/protocols

    Supported values:
    • %r{^[^\s#]+$}
  • short

    The short description of the service

    Supported values:
    • %r{.+}

Parameters

  • name (namevar)

    The target filename of the resource (without the .xml suffix)

    Supported values:
    • %r{.+}
  • provider

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