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

Facter 4.0.52 does not provide trusted['hostname'] in Docker environments

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Normal
    • Resolution: Won't Fix
    • Affects Version/s: FACT 4.0.52
    • Fix Version/s: FACT 4.1.0
    • Component/s: Facter 4
    • Labels:
    • Environment:
      • Puppet version: 6.21.0 and 7.3.0
      • Facter version: 4.0.52
      • Ruby version: 2.5.7 and 2.7.1
    • Template:
    • Team:
      Night's Watch
    • Story Points:
      1
    • Sprint:
      NW - 2021-04-28
    • Method Found:
      Needs Assessment
    • Release Notes:
      Not Needed
    • QA Risk Assessment:
      Needs Assessment

      Description

      We du run Puppet RSpec tests in a Gitlab Pipeline and use a specific Ruby Docker Image for that (basically ruby:2-alpine with some additional packages).

      I've noticed that tests depending on $::trusted['hostname'] start failing with Facter 4.0.52 as the variable is Undef. Running the exact same test using Facter 4.0.51 works fine (as it did with all previous versions we used).

      Interestingly this only happens when running the tests using the Docker Image (in Gitlab and also locally). If I execute the tests on a MacOS or Linux system directly, they throw no error.

      I've also tried using a different Puppet and Ruby version, but had the exact same behaviour.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              ManuelLaug Manuel Laug
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Zendesk Support