Skip to content

Latest commit

 

History

History
197 lines (102 loc) · 3.18 KB

File metadata and controls

197 lines (102 loc) · 3.18 KB

Reference

Table of Contents

Classes

  • pfunc: this class is only for testing no need to include it anywhere

Functions

Classes

pfunc

class for testing...

Parameters

The following parameters are available in the pfunc class:

nope

Data type: Any

result of the pfunc::nope function to print out see data/common.yaml for the function call

split

Data type: Array

result of the pfunc::split function to print out see data/common.yaml for the function call

join

Data type: String

result of the pfunc::join function to print out see data/common.yaml for the function call

hex

Data type: String

result of the pfunc::hex function to print out see data/common.yaml for the function call

Functions

pfunc::hex

Type: Puppet Language

format a integer as hex

pfunc::hex(Integer $v)

format a integer as hex

Returns: String hex interpretation of input

v

Data type: Integer

an integer

pfunc::join

Type: Puppet Language

join an Array

pfunc::join(Array $v, String $str = ',')

join an Array

Returns: String the joined array

v

Data type: Array

the array to concatenate

str

Data type: String

string to use inbetween the elements defaults to ','

pfunc::md5

Type: Puppet Language

calculate md5 sum of a string

pfunc::md5(String $v)

calculate md5 sum of a string

Returns: String the md5sum of the string

v

Data type: String

a string

pfunc::nope

Type: Puppet Language

do nothing, return parameter as is

pfunc::nope(Any $v)

do nothing, return parameter as is

Returns: Any the parameter you have set

v

Data type: Any

just any parameter

pfunc::split

Type: Puppet Language

split a string into an Array

pfunc::split(String $v, String $str = ',')

split a string into an Array

Returns: Array the splitted array

v

Data type: String

the string we like to split

str

Data type: String

the string we use to split on (default ',')

pfunc_lookup

Type: Ruby 4.x API

The pfunc_lookup function.

pfunc_lookup(Variant[String, Numeric] $key, Hash $options, Puppet::LookupContext $context)

The pfunc_lookup function.

Returns: Any

key

Data type: Variant[String, Numeric]

options

Data type: Hash

context

Data type: Puppet::LookupContext