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

Facts from symlinked folders (facts.d / modules) don't work correctly in Vagrant on Windows

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • FACT 3.6.0
    • Windows
    • Vagrant (virtualbox) on Windows, Facter 3.5.x, Custom ( Ruby ) facts.

    • Dumpling
    • FF 2017-01-11, FF 2017-01-25
    • Reviewed
    • Bug Fix
    • Facts from symlinked folders on Windows, such as Virtualbox Shared Folders, should now resolve correctly.

    Description

      Hello

      We've had an issue with using custom facts in Ruby on our Vagrant Windows instance.

      Vagrant shared the puppet code with the instance, through it's synced folder feature, which in this case is backed by Virtualbox Shared Folder. Facter tries to canonicalise this directory, and it seems ( haven't dug too much into boost ) that because this is a symlink to a UNC path, that this fails, so the facts don't get included.

      If nothing else (I'm not sure if we can do without or work around the canonical() call), then there could be better logging around this; using facter with --custom-dir didn't reveal anything useful, while using the FACTERLIB environment variable revealed the following debug entry, which isn't a lot of help in debugging why the path won't be searched ( I initially thought it was lack of a suitable ruby runtime ):

      2016-09-22 03:05:43.409832 DEBUG puppetlabs.facter - path "C:/tmp/vagrant-puppet/environments/production/site/games_dir/lib/facter" will not be searched for custom facts: The request is not supported.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              rorybr Rory Browne
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Zendesk Support