Details
-
Bug
-
Status: Resolved
-
Normal
-
Resolution: Cannot Reproduce
-
FACT 3.1.8
-
None
-
On Windows 2012R2 with fresh install of puppet-agent-x64-latest.msi downloaded on 06/20/2016.
-
Agent
-
Agent 2017-05-31
-
Automate
-
Need to check if this is a problem and if its already being tested
Description
The following ruby code has a different behavior on windows than on the linux boxes:
#!/usr/bin/ruby -W0
|
require 'facter' |
if Facter.value('kernel') == 'windows' |
ENV['FACTERLIB']='C:\\ProgramData\\PuppetLabs\\code\\modules\\some_module\\lib\\facter' |
else
|
ENV['FACTERLIB']='/etc/puppet/modules/some_module/lib/facter' |
end
|
puts ENV['FACTERLIB'] |
puts Facter.value('lib') |
On Linux, the path is shown twice, on windows only once.