Puppet Class: portmap

Defined in:
manifests/init.pp

Overview

Install the RPC port mapper.

Examples:

Declaring the class

include portmap

Parameters:

  • manage_package (Boolean)

    Whether a package is needed to be installed.

  • package_name (Optional[String])

    The package name, usually either portmap or rpcbind.

  • service_enable (Boolean)

    Whether to enable the service or not.

  • service_ensure (Enum['running', 'stopped'])

    Whether the service should be running or stopped.

  • service_name (String)

    The service name, usually either portmap or rpcbind.



11
12
13
14
15
16
17
18
19
20
21
22
23
# File 'manifests/init.pp', line 11

class portmap (
  Boolean                    $manage_package,
  Optional[String]           $package_name,
  Boolean                    $service_enable,
  Enum['running', 'stopped'] $service_ensure,
  String                     $service_name,
) {

  contain portmap::install
  contain portmap::service

  Class['portmap::install'] -> Class['portmap::service']
}