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

Fix dependency issues with apt repository #334

Merged
merged 1 commit into from
Apr 19, 2018

Conversation

baurmatt
Copy link
Contributor

@baurmatt baurmatt commented Jul 7, 2017

This is needed as there is currently no dependency between the
icinga2 packages and Class['apt::update']. This can lead to problems
where the package is installed before apt knowns of the repository.

It also removes the anchor usage of the icinga2::repo class and moves
the dependency management to icinga::repo itself. This is needed as
other modules might also add apt repositories and require
Class['apt::update']. When using the anchor pattern this breaks as
it introduces a dependency cycle.

@lbetz
Copy link
Contributor

lbetz commented Jul 10, 2017

What version of the apt module you use?

@baurmatt
Copy link
Contributor Author

Currently 4.1.0. btw, i can't see why the tests are failing, any idea?

@baurmatt
Copy link
Contributor Author

ok, tests pass locally. This seems to be a problem with Travis. Can someone please commented/review this?

This is needed as there is currently no dependency between the
icinga2 packages and Class['apt::update']. This can lead to problems
where the package is installed before apt knowns of the repository.

It also removes the anchor usage of the icinga2::repo class and moves
the dependency management to icinga::repo itself. This is needed as
other modules might also add apt repositories and require
Class['apt::update']. When using the anchor pattern this breaks as
it introduces a dependency cycle.
@baurmatt
Copy link
Contributor Author

Rebased. Can someone review this please?

@bobapple bobapple changed the base branch from master to v2.x April 19, 2018 12:30
@bobapple bobapple merged commit f18bad7 into voxpupuli:v2.x Apr 19, 2018
@baurmatt baurmatt deleted the fix-apt-dependency branch April 19, 2018 13:43
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

Successfully merging this pull request may close these issues.

3 participants