On every puppet run on a windows 2012r2 server we are getting the error
Facter: error while resolving custom fact "install_server__check_service": No such file or directory - pgrep -f "dtserver"
looking at the code
lib\facter\install_server__check_service.rb
it looks like the issue is we do not have pgrep on puppet agents or windows boxes. For now the quick fix i would recommend is adding
confine :kernel => 'Linux'
to line 2 so it would look something like
Facter.add(:install_server__check_service) do
confine :kernel => 'Linux'
setcode do
this will allow the fact to work in Linux and stop the error for windows, ( and i am not sure if dtserver even runs on windows)
On every puppet run on a windows 2012r2 server we are getting the error Facter: error while resolving custom fact "install_server__check_service": No such file or directory - pgrep -f "dtserver"
looking at the code lib\facter\install_server__check_service.rb it looks like the issue is we do not have pgrep on puppet agents or windows boxes. For now the quick fix i would recommend is adding confine :kernel => 'Linux' to line 2 so it would look something like
this will allow the fact to work in Linux and stop the error for windows, ( and i am not sure if dtserver even runs on windows)