Open olavmo-sikt opened 1 year ago
Hello! 👋
This issue has been open for a while and has had no recent activity. We've labelled it with attention-needed
so that we can get a clear view of which issues need our attention.
If you are waiting on a response from us we will try and address your comments on a future Community Day.
Alternatively, if it is no longer relevant to you please close the issue with a comment.
Use Case
I want a class that configures an APT repository to also ensure that
apt-get update
has run before any dependencies on that class. This way I can depend on the class that configures the repository without needing to know how this repository is configured. E.g.:This is currently not possible by using
contain apt::source
because that class is private. Instead if fails with:Describe the Solution You Would Like
Since the
apt::update
class is a documented part of this module, I think it could be marked as public. That would allow it to be used both throughcontain
and through direct dependencies (require => Class['apt::update']
).Describe Alternatives You've Considered
Two alternatives: