module-concat/lib/facter/concat_basedir.rb
Peter Meier 45dfa6984c don't use a hardcoded concatdir
Get the concat base directory from a fact -> makes it useable if
Puppet's :vardir is not /var/lib/puppet/. This fixes problems with
PE and makes the module also useable for puppet runs as
unpriviledged user.
2011-06-23 11:05:43 +02:00

5 lines
103 B
Ruby

Facter.add("concat_basedir") do
setcode do
File.join(Puppet[:vardir],"concat")
end
end