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

Add require_verify option to install.pp #244

Merged
merged 1 commit into from
Jun 19, 2022
Merged

Add require_verify option to install.pp #244

merged 1 commit into from
Jun 19, 2022

Conversation

jcpunk
Copy link

@jcpunk jcpunk commented Mar 14, 2022

Pull Request (PR) description

Add the option to reinstall a package if the rpm verify fails for the installed package.

This Pull Request (PR) fixes the following issues

None

onlyif => "rpm -q '${name}'",
unless => "rpm -V '${name}'",
timeout => $timeout,
before => Exec["yum-install-${name}"],
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

does that make sense? Do we want to run yum install after we did zum reinsstall?

Copy link
Author

@jcpunk jcpunk Apr 25, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In theory, the yum install should detect the rpm is loaded (via the rpm -q check (https://github.com/voxpupuli/puppet-yum/blob/master/manifests/install.pp#L30) and just skip it. If these package isn't installed, the verify check will be skipped but the package will be loaded.

@jcpunk jcpunk requested a review from bastelfreak June 17, 2022 18:23
@bastelfreak bastelfreak added the enhancement New feature or request label Jun 19, 2022
@bastelfreak bastelfreak merged commit 5430d10 into voxpupuli:master Jun 19, 2022
@jcpunk jcpunk deleted the verify branch June 19, 2022 23:34
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

Successfully merging this pull request may close these issues.

2 participants