d9a3c7617a
This moves all facts and puppet plugins to the plugins/ directory of modules to get the benefits of Matt's plugins patch, that distributes these files before the configuration is requested. This reduces the number of configuration runs to convergence by one.
9 lines
171 B
Ruby
9 lines
171 B
Ruby
# return the sha1 hash
|
|
require 'digest/sha1'
|
|
|
|
module Puppet::Parser::Functions
|
|
newfunction(:sha1, :type => :rvalue) do |args|
|
|
Digest::SHA1.hexdigest(args[0])
|
|
end
|
|
end
|
|
|