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

apt::update ordering creates dependency cycles #4

Closed
seocam opened this issue Dec 4, 2017 · 4 comments
Closed

apt::update ordering creates dependency cycles #4

seocam opened this issue Dec 4, 2017 · 4 comments

Comments

@seocam
Copy link

seocam commented Dec 4, 2017

This statement Class['apt::update'] -> Package <| |> [1] inserts a dependency in all packages defined not only by this module but for every other .pp file.

In many cases we want to install some packages before running the apt::update but this module makes in impossible. One example would be the package 'apt-transport-https'.

My suggestion is to only add the dependency to the specific packages the modules depends on instead of using the "wildcard".

[1] https://github.com/elastic/puppet-elastic-stack/blob/master/manifests/repo.pp#L34

@tylerjl
Copy link
Contributor

tylerjl commented Dec 6, 2017

@ninaspitfire
Copy link
Contributor

Oh that's nasty. Thanks for pointing it out.

It saddens me that apt-get update is still not a solved problem in Puppet, but what I'm doing here is not helping!

@ninaspitfire
Copy link
Contributor

Perhaps we should remove this altogether. This module does not install any packages, so refreshing the package list is not really its concern. Other modules that do install packages will know the names of those packages, and thus what to order after the update resource.

@ninaspitfire ninaspitfire changed the title Very invasive statement apt::update ordering creates dependency cycles Dec 7, 2017
@ninaspitfire
Copy link
Contributor

Fixed in version 6.0.1.

https://forge.puppet.com/elastic/elastic_stack/changelog#release-601

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants