jpadams / puppet_vim_env

0 stars 7 forks source link

Exclude fact from non-Linux machine #7

Closed Wernervdmerwe closed 7 years ago

Wernervdmerwe commented 7 years ago

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

Wernervdmerwe commented 7 years ago

Apologies - I see it is already fixed