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

FACTERLIB not taken in account on Windows 2012R2

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved
    • Normal
    • Resolution: Cannot Reproduce
    • FACT 3.1.8
    • None
    • Windows
    • On Windows 2012R2 with fresh install of puppet-agent-x64-latest.msi downloaded on 06/20/2016.

    • 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.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved:

              Zendesk Support