I recently took my first steps into external facts...
# openvox
d
I recently took my first steps into external facts. I started with a fact named "windows_path_programdata", which worked. Then I read that I could make it "structured" by using dots in my name:
Write-Output "windows.path.programdata=${programData}"
That, however, did not work when referenced as $facts['windows']['path']['programdata']; I got [] on Undef or similar errors. I then found "force-dot-resolution : true" in github.com/openvoxproject/openfact/blob/…/Extensibility.md#… but so, far it seems my best option is to manage that with hocon_setting from puppetlabs-hocon, which takes the path of the file, facter.conf, as an argument. Apparently there is not a built-in variable/fact for the location of facter.conf or the OS-specific portions of its path, so I need various conditionals in my Puppet manifest for that. It also seems that the facter.conf on at least one of my agent nodes, so I'll need to potentially manage one or more directories of its path. The Windows Agent I'm looking at is running OpenVox Agent 8.28.1, which I assume has OpenFact 5.6.x like my Linux-based box with openvox-agent-8.28.0-1.el9.x86_64. Is there a better way or should I just switch back to "windows_path_programdata" for now?