Puppet Function: htpasswd

Defined in:
puppet/modules/wmflib/lib/puppet/parser/functions/htpasswd.rb
Function type:
Ruby 3.x API

Overview

htpasswd()Any

Returns:

  • (Any)


102
103
104
105
# File 'puppet/modules/wmflib/lib/puppet/parser/functions/htpasswd.rb', line 102

newfunction(:htpasswd, :type => :rvalue, :arity => 2) do |args|
  generator = Apr1Md5.new args[1]
  generator.encode args[0]
end