-
Notifications
You must be signed in to change notification settings - Fork 325
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
Only install timesync packages if needed #1853
Only install timesync packages if needed #1853
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #1853 +/- ##
===========================================
- Coverage 74.62% 51.60% -23.03%
===========================================
Files 81 81
Lines 4492 4498 +6
===========================================
- Hits 3352 2321 -1031
- Misses 1140 2177 +1037 ☔ View full report in Codecov by Sentry. |
37a4799
to
423fb62
Compare
6700df9
to
e3ec2d5
Compare
This is still a draft. The fail because the tests don't ensure platform is an instance of |
27c5b04
to
594063b
Compare
594063b
to
6fcba17
Compare
6fcba17
to
fc29950
Compare
Test changes split off to #1900. |
Chrony/NTP is only needed if timesync is requested. In some cases (like containers) it never makes sense. Which packages are installed is really platform specific logic, so it should live in the platform class.
fc29950
to
18e6e22
Compare
@@ -34,7 +11,7 @@ def get_host_pkg(host) | |||
|
|||
step '#check_for_package : can determine if a package is installed' | |||
hosts.each do |host| | |||
package = get_host_pkg(host)[0] | |||
package = 'bash' |
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.
This probably isn't correct for everything, but the old approach was getting invalid.
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.
at least for everything we test on, it should be fine.
Chrony/NTP is only needed if timesync is requested. In some cases (like containers) it never makes sense.
This was inspired by voxpupuli/beaker-hostgenerator#359 (comment) and currently testing it out.