Puppet Function: htpasswd

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

Overview

htpasswd()Any

Returns:

  • (Any)


9
10
11
12
# File 'modules/wmflib/lib/puppet/parser/functions/htpasswd.rb', line 9

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