Jira (PUP-11070) pacman package provider failing for facter version 4.1.1

10 views
Skip to first unread message

Jim Richardson (Jira)

unread,
May 18, 2021, 2:00:03 PM5/18/21
to puppe...@googlegroups.com
Jim Richardson created an issue
 
Puppet / Bug PUP-11070
pacman package provider failing for facter version 4.1.1
Issue Type: Bug Bug
Affects Versions: PUP 7.6.0
Assignee: Unassigned
Components: Types and Providers
Created: 2021/05/18 10:59 AM
Priority: Normal Normal
Reporter: Jim Richardson

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 Manjorolinux systems. I will paste below the old, and new versions, and a pactch I applied that resolved my issue.

 

$ facter --version$ facter --version3.14.16
$ facter operatingsystemArchlinux
$ facter --version4.1.1
manjaro$ facter operatingsystemArch
manjaro$ facter --version4.1.1
$ facter operatingsystemManjaro
$ 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.

 

Add Comment Add Comment
 
This message was sent by Atlassian Jira (v8.13.2#813002-sha1:c495a97)
Atlassian logo

Jim Richardson (Jira)

unread,
May 18, 2021, 2:04:02 PM5/18/21
to puppe...@googlegroups.com
Jim Richardson updated an issue
Change By: Jim Richardson
*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 Manjorolinux systems. I will paste below the old, and new versions, and a pactch I applied that resolved my issue.

  {{

$ facter --version $ facter --version3

3
.14.16

$ facter operatingsystemArchlinux operatingsystem
Archlinux

$ facter -- version4 version
4
.1.1

manjaro
$ facter operatingsystemArch operatingsystem
Arch

manjaro
$ facter -- version4 version
4
.1.1

$ facter operatingsystemManjaro 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.*

 

Jim Richardson (Jira)

unread,
May 18, 2021, 2:06:04 PM5/18/21
to puppe...@googlegroups.com
Jim Richardson updated an issue
*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 Manjorolinux Manjarolinux systems. I will paste below the old, and new versions, and a pactch 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.*

 

Gheorghe Popescu (Jira)

unread,
May 19, 2021, 2:45:01 AM5/19/21
to puppe...@googlegroups.com
Gheorghe Popescu updated an issue
Change By: Gheorghe Popescu
*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.


{ { code}
{code } }

*Desired Behavior:*

*Support new fact operatingsystem values for Archlinux family*

*Actual Behavior:*

*Fails to provide pacman support with new values.*

 

Gheorghe Popescu (Jira)

unread,
May 19, 2021, 2:46:05 AM5/19/21
to puppe...@googlegroups.com
Gheorghe Popescu commented on Bug PUP-11070
 
Re: pacman package provider failing for facter version 4.1.1

Hi Jim Richardson this seems to be a Facter issues because the value of the facts changed, I'll move it to the Facter project. Thanks for reporting

Reply all
Reply to author
Forward
0 new messages