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

manage_repo: ensure that we refresh the package list before installing consul #612

Merged
merged 1 commit into from
Oct 26, 2022

Conversation

bastelfreak
Copy link
Member

by including the hashistack_repo class, we get the correct apt repo. It will also notify the apt_update exec resource. We just need to ensure that the exec happens before we install consul.

Pull Request (PR) description

This Pull Request (PR) fixes the following issues

@bastelfreak bastelfreak added the bug Something isn't working label Oct 26, 2022
@bastelfreak bastelfreak self-assigned this Oct 26, 2022
…g consul

by including the hashistack_repo class, we get the correct apt repo. It
will also notify the apt_update exec resource. We just need to ensure
that the exec happens before we install consul.
Copy link
Member

@kenyon kenyon left a comment

Choose a reason for hiding this comment

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

Should it be Class['apt::update'] instead of the Exec?

@bastelfreak
Copy link
Member Author

https://github.com/puppetlabs/puppetlabs-apt#update-the-list-of-packages explicitly mentions the exec that should be notified/depends on.

@bastelfreak bastelfreak merged commit 636bce1 into voxpupuli:master Oct 26, 2022
@bastelfreak bastelfreak deleted the foo branch October 26, 2022 15:23
@kenyon
Copy link
Member

kenyon commented Oct 26, 2022

@bastelfreak ah I read that section as a description of how the module works, and considered the Exec to be an implementation detail. I was looking at this section: https://github.com/puppetlabs/puppetlabs-apt#adding-new-sources-or-ppas

It's confusing at the least. I haven't been able to get apt updates to happen in the same puppet run as a package installation, consistently.

@bastelfreak
Copy link
Member Author

It was definetly broken in many older puppetlabs-apt releases, but with the depencendy on the exec it's working fine for me since some time.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants