-
Notifications
You must be signed in to change notification settings - Fork 463
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
Conversation
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? |
hrmm, it's possible this has been wrong for forever then :\ I'll have to do some experimenting with graphs. |
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.
34f3e07
to
911c4de
Compare
@daenney so, it actually hasn't been wrong for forever, just since hulk-smashing-removing-unnecessary-includes. This should be better :) |
Aha, that's interesting. |
(MODULES-1156, MODULES-769) Update anchors
anchor { 'apt::update': | ||
require => Class['apt::update'], | ||
} | ||
contain 'apt::update' |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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.
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.