We use the module, but have a mixed environment setup mostly made up of Windows and Linux servers.
The homedir fact causes an error on every run on the Windows servers.
I fixed it for us by adding the line confine :kernel => 'Linux' before setcode do in lib/facter/homedir.rb
We use the module, but have a mixed environment setup mostly made up of Windows and Linux servers. The homedir fact causes an error on every run on the Windows servers.
I fixed it for us by adding the line
confine :kernel => 'Linux'
beforesetcode do
in lib/facter/homedir.rb