Jira (PUP-11585) yumrepo_core doesn't create file resources

6 views
Skip to first unread message

Pat Riehecky (Jira)

unread,
Jul 5, 2022, 10:07:04 AM7/5/22
to puppe...@googlegroups.com
Pat Riehecky created an issue
 
Puppet / Improvement PUP-11585
yumrepo_core doesn't create file resources
Issue Type: Improvement Improvement
Assignee: Unassigned
Created: 2022/07/05 7:06 AM
Priority: Normal Normal
Reporter: Pat Riehecky

The yumrepo_core type creates elements in /etc/yum.repos.d/ but does not create a File resource for those items.  As a result, if /etc/yum.repos.d/ is set to purge unmanaged files, the newly created resources are immediately removed making things non-idempotent and also confusing.

Add Comment Add Comment
 
This message was sent by Atlassian Jira (v8.20.2#820002-sha1:829506d)
Atlassian logo

Nirupama Mantha (Jira)

unread,
Jul 5, 2022, 4:23:02 PM7/5/22
to puppe...@googlegroups.com
Nirupama Mantha commented on Improvement PUP-11585
 
Re: yumrepo_core doesn't create file resources

jcpunk is there a way to purge repo configs using the yumrepo type directly?

Nirupama Mantha (Jira)

unread,
Jul 5, 2022, 4:23:03 PM7/5/22
to puppe...@googlegroups.com

Pat Riehecky (Jira)

unread,
Jul 6, 2022, 11:21:02 AM7/6/22
to puppe...@googlegroups.com
Pat Riehecky commented on Improvement PUP-11585

I'm not aware of a way to use the yumrepo type in that manner.

 

It gets more complex when consuming content via subscription-manager.  The repo file is written out directly there.  It can be tracked with a `File` resource, but without having the other files under the `File` scope, it is a bit of a mess.

 

https://github.com/voxpupuli/puppet-yum/pull/258#issuecomment-1173727992

Reply all
Reply to author
Forward
0 new messages