Jira (PUP-10419) Support disable module with dnfmodule package provider

19 views
Skip to first unread message

Vadym Chepkov (Jira)

unread,
Apr 14, 2020, 8:22:04 AM4/14/20
to puppe...@googlegroups.com
Vadym Chepkov created an issue
 
Puppet / New Feature PUP-10419
Support disable module with dnfmodule package provider
Issue Type: New Feature New Feature
Assignee: Unassigned
Created: 2020/04/14 5:21 AM
Priority: Normal Normal
Reporter: Vadym Chepkov

dnfmodule package provider currently only supports 'enable' operation.

disable operation should be added as well, which would allow use alternative sources for the OS packages, not supporting modular design.

For example, to install postgresql 11 one needs to disable 'postgresql' module

# dnf module list --disabledLast metadata expiration check: 0:01:36 ago on Mon 13 Apr 2020 05:23:56 PM UTC.CentOS-8 - AppStreamName                              Stream                           Profiles                                 Summary                                                  postgresql                        9.6 [x]                          client, server [d]                       PostgreSQL server and client module                      postgresql                        10 [d][x]                        client, server [d]                       PostgreSQL server and client module                      postgresql                        12 [x]                           client, server                           PostgreSQL server and client module                        Hint: [d]efault, [e]nabled, [x]disabled, [i]nstalled

Add Comment Add Comment
 
This message was sent by Atlassian Jira (v8.5.2#805002-sha1:a66f935)
Atlassian logo

Gabriel Nagy (Jira)

unread,
Apr 14, 2020, 8:27:03 AM4/14/20
to puppe...@googlegroups.com
Gabriel Nagy updated an issue
Change By: Gabriel Nagy
Sprint: PR - Triage
Team: Night's Watch

Mihai Buzgau (Jira)

unread,
Apr 15, 2020, 5:50:02 AM4/15/20
to puppe...@googlegroups.com

Mihai Buzgau (Jira)

unread,
Apr 15, 2020, 5:50:04 AM4/15/20
to puppe...@googlegroups.com
Mihai Buzgau updated an issue
Change By: Mihai Buzgau
Sprint: PR NW - Triage 2020-04-29

Mihai Buzgau (Jira)

unread,
Apr 27, 2020, 3:05:04 AM4/27/20
to puppe...@googlegroups.com

Mihai Buzgau (Jira)

unread,
Apr 29, 2020, 4:41:03 AM4/29/20
to puppe...@googlegroups.com
Mihai Buzgau updated an issue
Change By: Mihai Buzgau
Sprint: NW - 2020-04-29 , NW - 2020-05-13

Dorin Pleava (Jira)

unread,
Apr 29, 2020, 11:06:03 AM4/29/20
to puppe...@googlegroups.com
Dorin Pleava commented on New Feature PUP-10419
 
Re: Support disable module with dnfmodule package provider

After some discussion with the team, we think the best method to disable a dnf module, is to create a new value for ensure field, only available for dnf module.

"package { 'package_name':
  ensure => 'disabled',
  provider => 'dnfmodule'
}"

Some other alternatives would have been:

  • Create a new parameter 'disable_stream=true', but that would lead to additional checks/complexity regarding the ensure parameter.
  • Creating a new resource, but most likely we would end up in the same situation where we would like to enable a stream, but not install the profile, so we would need the enable_only field again.

Mihai Buzgau (Jira)

unread,
May 13, 2020, 3:58:03 AM5/13/20
to puppe...@googlegroups.com
Mihai Buzgau updated an issue
Change By: Mihai Buzgau
Sprint: NW - 2020-04-29, NW - 2020-05-13 , NW - 2020-05-27

Gheorghe Popescu (Jira)

unread,
May 27, 2020, 5:55:04 AM5/27/20
to puppe...@googlegroups.com

Claire Cadman (Jira)

unread,
May 29, 2020, 4:23:03 AM5/29/20
to puppe...@googlegroups.com

Mihai Buzgau (Jira)

unread,
Jul 2, 2020, 5:52:03 AM7/2/20
to puppe...@googlegroups.com
Mihai Buzgau updated an issue
Change By: Mihai Buzgau
Fix Version/s: PUP 5.5.21
Reply all
Reply to author
Forward
0 new messages