Puppet Function: openldap::flatten_security

Defined in:
functions/flatten_security.pp
Function type:
Puppet Language

Overview

openldap::flatten_security(Optional[OpenLDAP::Security] $value)Optional[String]

Flatten security strength factors to string form.

Examples:

openldap::flatten_security({'ssf' => 256})

Parameters:

  • value (Optional[OpenLDAP::Security])

    The strength factors to flatten, undef is passed through.

Returns:

  • (Optional[String])

    The flattened strength factors.

Since:

  • 2.0.0



11
12
13
14
15
16
17
# File 'functions/flatten_security.pp', line 11

function openldap::flatten_security(Optional[OpenLDAP::Security] $value) {

  $value ? {
    undef   => undef,
    default => join(join_keys_to_values($value, '='), ' '),
  }
}