Puppet Function: postgresql::prepend_sql_password

Defined in:
lib/puppet/functions/postgresql/prepend_sql_password.rb
Function type:
Ruby 4.x API

Summary

This function exists for usage of a role password that is a deferred function

Overview

postgresql::prepend_sql_password(String $password)String

Parameters:

  • password (String)

    The clear text ‘password`

Returns:

  • (String)


4
5
6
7
8
9
10
11
12
13
14
# File 'lib/puppet/functions/postgresql/prepend_sql_password.rb', line 4

Puppet::Functions.create_function(:'postgresql::prepend_sql_password') do
  # @param password
  #   The clear text `password`
  dispatch :default_impl do
    required_param 'String', :password
    return_type 'String'
  end
  def default_impl(password)
    "ENCRYPTED PASSWORD '#{password}'"
  end
end