Facter 4.2.1

Released June 2021 and shipped with Puppet7.8.0.

Enhancements

  • Add flags to the help menu. This release adds the following short flags to the help menu: -v [--version], -p [--puppet] and -h [--help]. FACT-3044
  • Facter retrieves Ec2 metadata using IMDSv2. This release improves the way Facter retrieves ec2_metadata by using IMDSv2 instead of IMDSv1. In this release, Facter automatically uses IMDSv2 to retrieve an AWS token to add to the X-aws-ec2-metadata-token header. FACT-3042

Resolved issues

  • Facter 4 CLI did not accept concatenated short flags. Facter 3 allowed short flags to be combined, such as `-jp` or -jd. In Facter 4, you must declare short flags separately, such as -j -p or -j -d. FACT-3046
  • Ec2 resolver failed because of nil tokens. Facter returned failing Rspec tests if a token was nil before sending an HTTP request. The HTTP request gathers any required data to resolve the Ec2 fact. To solve this issue, Facter now no longer sends HTTP requests if a token is nil.FACT-3050
  • Incorrect use of ffi_lib on Windows. This release fixes how ntdll.dll was loaded on Windows. FACT-3048