Puppet Function: ora_config::generated_password

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

Overview

ora_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/puppet/functions/ora_config/generated_password.rb', line 6

Puppet::Functions.create_function('ora_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/oracle/utilities'
    extend PuppetX::EnterpriseModules::Oracle::Utilities
    generated_password(password_length)
  end
end