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.
13 lines
260 B
Ruby
13 lines
260 B
Ruby
# generic gsub call
|
|
module Puppet::Parser::Functions
|
|
newfunction(:gsub, :type => :rvalue) do |args|
|
|
if args[0].is_a?(Array)
|
|
args[0].collect do |val|
|
|
val.gsub(/#{args[1]}/, args[2])
|
|
end
|
|
else
|
|
args[0].gsub(/#{args[1]}/, args[2])
|
|
end
|
|
end
|
|
end
|
|
|