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

pacman package provider failing for facter version 4.1.1

    XMLWordPrintable

Details

    • Night's Watch
    • 2
    • NW - 2021-07-28
    • Needs Assessment
    • Bug Fix
    • Fixed the `operatingsystem` fact value for Archlinux and Manjarolinux
    • Needs Assessment

    Description

      Puppet Version: 7.6.1
      Puppet Server Version:
      OS Name/Version: Arch, Manjaro

      Between facter version 3.14.16 and 4.1.1 the operatingsystem fact change value for Archlinux and Manjarolinux systems. I will paste below the old, and new versions, and a patch I applied that resolved my issue.

       
      $ facter --version
      3.14.16
       
      $ facter operatingsystem
      Archlinux
       
      $ facter --version
      4.1.1
       
      manjaro
      $ facter operatingsystem
      Arch
       
      manjaro
      $ facter --version
      4.1.1
       
      $ facter operatingsystem
      Manjaro
       
      $ diff -uN gems/puppet-7.6.1/lib/puppet/provider/package/pacman.rb.original gems/puppet-7.6.1/lib/puppet/provider/package/pacman.rb
      --- gems/2.6.0/gems/puppet-7.6.1/lib/puppet/provider/package/pacman.rb.original	2021-05-18 13:42:53.605213957 -0400
      +++ gems/2.6.0/gems/puppet-7.6.1/lib/puppet/provider/package/pacman.rb	2021-05-18 13:44:11.515267826 -0400
      @@ -17,8 +17,8 @@
         # Yaourt is a common AUR helper which, if installed, we can use to query the AUR
         commands :yaourt => "/usr/bin/yaourt" if yaourt?
       
      -  confine     :operatingsystem => [:archlinux, :manjarolinux]
      -  defaultfor  :operatingsystem => [:archlinux, :manjarolinux]
      +  confine     :operatingsystem => [:archlinux, :manjarolinux, :arch, :manjaro]
      +  defaultfor  :operatingsystem => [:archlinux, :manjarolinux, :arch, :manjaro]
         has_feature :install_options
         has_feature :uninstall_options
         has_feature :upgradeable
      

      Desired Behavior:

      Support new fact operatingsystem values for Archlinux family

      Actual Behavior:

      Fails to provide pacman support with new values.

       

      Attachments

        Activity

          People

            gheorghe.popescu Gheorghe Popescu
            qs5779@gmail.com Jim Richardson
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Zendesk Support