Puppet Function: netbase::port

Defined in:
modules/netbase/functions/port.pp
Function type:
Puppet Language

Summary

function to return a hash of service definitions

Overview

netbase::port(Stdlib::Port $filter)Optional[Netbase::Service]

SPDX-License-Identifier: Apache-2.0

Parameters:

  • filter (Stdlib::Port)

    a list of ports used to ensure we only return services matching the ports

Returns:

  • (Optional[Netbase::Service])


4
5
6
7
8
9
# File 'modules/netbase/functions/port.pp', line 4

function netbase::port (
    Stdlib::Port $filter
) >> Optional[Netbase::Service] {
    include netbase
    netbase::ports($filter).values[0]
}