Uploaded image for project: 'Facter'
  1. Facter
  2. FACT-1443

FACTERLIB not taken in account on Windows 2012R2

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Normal
    • Resolution: Cannot Reproduce
    • Affects Version/s: FACT 3.1.8
    • Fix Version/s: None
    • Component/s: Windows
    • Labels:
    • Environment:

      On Windows 2012R2 with fresh install of puppet-agent-x64-latest.msi downloaded on 06/20/2016.

    • Template:
    • Team:
      Agent
    • Sprint:
      Agent 2017-05-31
    • QA Risk Assessment:
      Automate
    • QA Risk Assessment Reason:
      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.

        Attachments

          Activity

            People

            Assignee:
            eric.delaney Eric Delaney
            Reporter:
            marema Marc Carmier
            QA Contact:
            Eric Delaney
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Zendesk Support