There were cases when the Mesos package was being installed before apt-get update had run, requiring the user to make the dependency explicit. This (hopefully) fixes that by cleaning up/correcting some of the apt stuff in mesos::repo.
include apt shouldn't conflict with previously defined inclusions (no need to check if class defined)
Doing include apt includes apt::update
Doing include apt::update doesn't ensure any ordering of when the class is applied
Use anchors to containClass['apt::update'] to ensure that if a resource requires Class['mesos::repo'] by extension it also requires Class['apt::update']
There were cases when the Mesos package was being installed before apt-get update had run, requiring the user to make the dependency explicit. This (hopefully) fixes that by cleaning up/correcting some of the apt stuff in
mesos::repo
.include apt
shouldn't conflict with previously defined inclusions (no need to check if class defined)include apt
includesapt::update
include apt::update
doesn't ensure any ordering of when the class is appliedClass['apt::update']
to ensure that if a resource requiresClass['mesos::repo']
by extension it also requiresClass['apt::update']