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

(MODULES-1156, MODULES-769) Update anchors #479

Merged
merged 1 commit into from
Mar 25, 2015

Conversation

underscorgan
Copy link

I think our anchors for Class['apt::update'] were backwards since the code was all setting notifies, but we were using requires. This was leading to a bunch of dependency cycle issues.

@underscorgan underscorgan added this to the 2.0 milestone Mar 23, 2015
@daenney
Copy link

daenney commented Mar 23, 2015

Mmm. I hate anchors. Annoying thing to hook in classes. What I always understood though is that we need two, a start and an end anchor and hook the class in in-between to make sure it can't float off. What am I missing?

@underscorgan
Copy link
Author

hrmm, it's possible this has been wrong for forever then :\

I'll have to do some experimenting with graphs.

@underscorgan
Copy link
Author

hahaha yep. according to docs this has been wrong foreversies. wheeee.

`apt::ppa` and `apt::setting` don't actually include `apt::update` so
anchors are unnecessary. Move `apt` to use contain instead of anchors,
since it wasn't anchoring properly anyways. Update the tests to make
sure it can have settings and ppas depending on each other without
cycles.
@underscorgan
Copy link
Author

@daenney so, it actually hasn't been wrong for forever, just since hulk-smashing-removing-unnecessary-includes. This should be better :)

@daenney
Copy link

daenney commented Mar 25, 2015

Aha, that's interesting.

daenney added a commit that referenced this pull request Mar 25, 2015
(MODULES-1156, MODULES-769) Update anchors
@daenney daenney merged commit 6d12a03 into puppetlabs:next Mar 25, 2015
anchor { 'apt::update':
require => Class['apt::update'],
}
contain 'apt::update'
Copy link

Choose a reason for hiding this comment

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

Oh eh, are we sure we need the quotes here?

Copy link
Author

Choose a reason for hiding this comment

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

um. no. not confident about that at all.

@underscorgan underscorgan deleted the update_anchors branch March 27, 2015 03:14
@LukasAud LukasAud added the bugfix label Jun 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants