Puppet Function: pg_config::generated_password

Defined in:
lib/functions/pg_config/generated_password.rb
Function type:
Ruby 4.x API

Overview

pg_config::generated_password(Optional[Integer] $password_length)String

See the file “LICENSE” for the full license governing this code.

Parameters:

  • password_length (Optional[Integer])

Returns:

  • (String)


6
7
8
9
10
11
12
13
14
15
16
17
# File 'lib/functions/pg_config/generated_password.rb', line 6

Puppet::Functions.create_function('pg_config::generated_password') do
  dispatch :generated_password do
    optional_param 'Integer',  :password_length
    return_type 'String'
  end

  def generated_password(password_length = 12)
    require_relative '../../../puppet_x/enterprisemodules/postgres/utilities'
    extend PuppetX::EnterpriseModules::Postgres::Utilities
    generated_password(password_length)
  end
end