Hi, new Puppet user here.
When are new versions of Facter (2+) expected to be included with the Windows puppet agent install package?
I'm trying to get some aggregate resolutions working, and it took me a while to figure out that my test Windows client wasn't running Facter 2, where aggregate resolutions aren't implemented yet.
Basically, I just want to build a fact that does this (maybe I don't even need aggregate resolutions). I had problems with concatenating strings in Facter though, and from what I've read aggregate resolutions seem to be the way to do it.
Facter.add(:hostlog) do somefilename = "C:\" + Facter.value('hostname') + "." + Facter.value('environment') + ".log" # ie. "C:\host01.test.log" if file.exist? somefilename false else true end endSo then what I was trying to do is this:
Facter.add(:hostlog, :type => :aggregate) do chunk(:hostname) do Facter.value(:hostname) end chunk(:environment) do Facter.value(:environment) end aggregate do |chunks| result = "" chunks.each do |chunk| result += chunk end result end end
Anyone able to help?