Puppet Function: gocd_password_hash
- Defined in:
- lib/puppet/parser/functions/gocd_password_hash.rb
- Function type:
- Ruby 3.x API
Overview
18 19 20 21 |
# File 'lib/puppet/parser/functions/gocd_password_hash.rb', line 18 newfunction(:gocd_password_hash, :type => :rvalue) do |args| raise Puppet::ParseError, 'Invalid arguments!' unless args.length == 1 ("{SHA}" + Base64.encode64(::Digest::SHA1.digest(args[0])).strip) end |