Closed jcpunk closed 2 years ago
Can you release a new forge version with the last batch of changes?
@jcpunk does this actually work? If I just create a purge file resource for the directory, the module creates the repos and then purges them again each run. Apparently the modules creates files without using the file resources.
Jul 4 13:46:10 puppettest-linux-centos-7-64bit puppet-agent[11376]: (/Stage[main]/Yum/Yumrepo[extras]/ensure) created (corrective)
...
Jul 4 13:46:18 puppettest-linux-centos-7-64bit puppet-agent[11376]: (/Stage[main]/Yum/File[/etc/yum.repos.d/extras.repo]/ensure) removed (corrective)
That is from one run.
I'm a bit surprised that the yumrepo
type doesn't provide the file resources....
My target use case is paired with https://github.com/voxpupuli/puppet-rhsm/commit/1c2abe59cc8b3459dc95f4ad6c85db5a51d2fbdb so that I can be sure only redhat.repo
is in /etc/yum.repos.d/
on certain systems.
I've popped open https://tickets.puppetlabs.com/browse/PUP-11585 (I can't seem to create tickets against the MODULE project....)
This was an attempted fix of #94.
Pull Request (PR) description
With the support for defining repos, it is helpful to have an easy way to purge unmanaged repos.
This Pull Request (PR) fixes the following issues
N/A