Jira (PUP-1217) yum provider + package groups giving unnecessary errors

11 views
Skip to first unread message

Eli Young (JIRA)

unread,
Nov 19, 2014, 7:23:30 PM11/19/14
to puppe...@googlegroups.com
Eli Young commented on Bug PUP-1217
 
Re: yum provider + package groups giving unnecessary errors

Somebody wrote a custom type yumgroup that may be useful as a base when this gets implemented.

Add Comment Add Comment
 
This message was sent by Atlassian JIRA (v6.3.7#6337-sha1:2ed701e)
Atlassian logo

Jeffrey Hochwart (JIRA)

unread,
Feb 24, 2017, 4:45:03 AM2/24/17
to puppe...@googlegroups.com

We need also to install a group with "yum groupinstall" is there any update if this will be implemented?

This message was sent by Atlassian JIRA (v6.4.14#64029-sha1:ae256fe)
Atlassian logo

Maggie Dreyer (JIRA)

unread,
May 15, 2017, 2:43:07 PM5/15/17
to puppe...@googlegroups.com
Maggie Dreyer updated an issue
 
Puppet / Bug PUP-1217
Change By: Maggie Dreyer
Labels: help_wanted redmine  triage  yum

John Duarte (JIRA)

unread,
May 15, 2017, 2:50:04 PM5/15/17
to puppe...@googlegroups.com
John Duarte updated an issue
Change By: John Duarte
Labels: help_wanted redmine  triage  triaged  yum

Moses Mendoza (JIRA)

unread,
May 18, 2017, 1:46:44 PM5/18/17
to puppe...@googlegroups.com
Moses Mendoza updated an issue
Change By: Moses Mendoza
Labels: help_wanted redmine  triaged  yum

Jacob Helwig (JIRA)

unread,
Dec 5, 2017, 5:59:03 PM12/5/17
to puppe...@googlegroups.com
Jacob Helwig updated an issue
Change By: Jacob Helwig
Sub-team: Coremunity
This message was sent by Atlassian JIRA (v7.0.2#70111-sha1:88534db)
Atlassian logo

Jason Antman (JIRA)

unread,
Dec 27, 2017, 4:07:05 PM12/27/17
to puppe...@googlegroups.com
Jason Antman assigned an issue to Unassigned
 

I don't know who should get assignments for Types and Providers these days, if anyone, but this has been assigned to me for almost four years, and I haven't made a commit against puppet itself in about that long. I'm clearly not going to be fixing this one (if it's even still valid). It also no longer affects me. Sorry.

Change By: Jason Antman
Assignee: Jason Antman

Josh Cooper (JIRA)

unread,
Jun 7, 2018, 4:24:04 PM6/7/18
to puppe...@googlegroups.com
Josh Cooper updated an issue
Change By: Josh Cooper
Fix Version/s: PUP Future
This message was sent by Atlassian JIRA (v7.7.1#77002-sha1:e75ca93)
Atlassian logo

Dagan McGregor (JIRA)

unread,
Jul 17, 2018, 6:45:04 PM7/17/18
to puppe...@googlegroups.com
Dagan McGregor commented on Bug PUP-1217
 
Re: yum provider + package groups giving unnecessary errors

This is still a problem on EL7 hosts, in 2018. Original report date was 11/02/2010.

 

There are a number of `group` sub-commands in EL7 that support group package actions.

 

Is it possible this can be looked at again?

 

Gerhardus Geldenhuis (JIRA)

unread,
Aug 10, 2018, 2:35:03 AM8/10/18
to puppe...@googlegroups.com

Would be great to get this looked at again. It seems like fairly standard yum functionality. Specifically I would have liked to use it to install "Infiniband Support". My current work around is to install a list of packages as definined in the group but then I would need to maintain the list of packages if the group changes. I am personally not overly fond of an exec statement as this then also potentially effects or breaks catalogue ordering. Eg: Yumrepo <| |> -> Package <| |> would now need to suplimented by Yumrepo<| |> -> yumgroup_exec <| |>

Josh Cooper (JIRA)

unread,
Sep 26, 2018, 10:36:06 PM9/26/18
to puppe...@googlegroups.com
Josh Cooper updated an issue
Change By: Josh Cooper
Team: Coremunity Platform OS

Bogdan Irimie (Jira)

unread,
Nov 5, 2020, 3:51:04 AM11/5/20
to puppe...@googlegroups.com
Bogdan Irimie updated an issue
Change By: Bogdan Irimie
Sprint:
This message was sent by Atlassian Jira (v8.5.2#805002-sha1:a66f935)
Atlassian logo

Bogdan Irimie (Jira)

unread,
Nov 5, 2020, 3:52:03 AM11/5/20
to puppe...@googlegroups.com

Ciprian Badescu (Jira)

unread,
Oct 20, 2021, 4:54:03 AM10/20/21
to puppe...@googlegroups.com
Ciprian Badescu updated an issue
Change By: Ciprian Badescu
Sprint: ready for triage
This message was sent by Atlassian Jira (v8.13.2#813002-sha1:c495a97)
Atlassian logo

Josh Cooper (Jira)

unread,
Oct 29, 2021, 7:05:01 PM10/29/21
to puppe...@googlegroups.com
Josh Cooper commented on Bug PUP-1217
 
Re: yum provider + package groups giving unnecessary errors

Here's a possible way forward on this:

  • Add a :supports_groups feature to lib/puppet/type/package.rb
  • Add a yumgroup package provider whose parent is Puppet::Provider::Package.
  • Specify that the provider supports the feature: has_feature :group
  • Implement install and uninstall methods that call the yum group commands, e.g. yum groupinstall X
  • Implement instances method that parses the output of yum grouplist. For each installed group, produce a provider instances:

def self.instances
  packages = []
  output = execute("#{command(:cmd)} grouplist")
  output.each_line do |line|
    # TODO: parse lines following "^Installed Packages:"
    packages << new(name: "..", ensure: :installed, provider: self.name)
  end
  packages
rescue Puppet::ExecutionFailure => e
  raise Puppet::Error, _("Failed to list packages"), e
end

  • Since yum groups are managed with a different provider, we don't have to worry about their names conflicting with a yum/rpm package with the same name.
  • We probably want to add support for install_options and uninstall_options, and maybe install_only.
  • We might want to add support for purgeable?

But I don't think it'd make sense to support versionable or virtual_packages like the rpm and yum providers do.

Josh Cooper (Jira)

unread,
Dec 10, 2021, 2:44:01 AM12/10/21
to puppe...@googlegroups.com
Josh Cooper updated an issue
 
Change By: Josh Cooper
Labels: help_wanted package platform-os redmine tbd type_and_provider yum
This message was sent by Atlassian Jira (v8.20.2#820002-sha1:829506d)
Atlassian logo
Reply all
Reply to author
Forward
0 new messages