Puppet Function: user_password

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

Overview

user_password(Variant[Sensitive[String], String] $password)Variant[Sensitive[String], String]

Parameters:

  • password (Variant[Sensitive[String], String])

Returns:

  • (Variant[Sensitive[String], String])


3
4
5
6
7
8
9
10
11
12
# File 'lib/puppet/functions/user_password.rb', line 3

Puppet::Functions.create_function(:user_password) do
  dispatch :user_password do
    param 'Variant[Sensitive[String], String]', :password
    return_type 'Variant[Sensitive[String], String]'
  end

  def user_password(password)
    password
  end
end