Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

use yumrepo to create repofiles under RHEL/Centos #14

Open
benibr opened this issue Sep 10, 2019 · 0 comments
Open

use yumrepo to create repofiles under RHEL/Centos #14

benibr opened this issue Sep 10, 2019 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@benibr
Copy link
Contributor

benibr commented Sep 10, 2019

If Exec with wget is used to create the repo files, it conflicts with the purge parameter of yumrepo resource which removes unmanaged repos.

Example:

 resources { 'yumrepo':
    purge =>   true,
 }
class { 'wireguard':
}

This would create the repo file in the first run, then empty it in the 2nd run and then never touch it again.
Therefore wireguard cannot be installed.

This could be fixed by using yumrepo to manage the repo under all systems which use yum.

@spacedog spacedog self-assigned this Sep 10, 2019
@spacedog spacedog added the enhancement New feature or request label Sep 10, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants