Skip to content

Commit

Permalink
Merge pull request #9182 from hakman/focal-timesyncd
Browse files Browse the repository at this point in the history
Use systemd-timesyncd for Ubuntu 20.04
  • Loading branch information
k8s-ci-robot authored May 27, 2020
2 parents 4d8c8ba + 33e794a commit 4dd5917
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion nodeup/pkg/model/ntp.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,10 @@ func (b *NTPBuilder) Build(c *fi.ModelBuilderContext) error {
return nil
}

if b.Distribution.IsDebianFamily() {
if b.Distribution == distros.DistributionFocal {
c.AddTask(&nodetasks.Package{Name: "systemd-timesyncd"})
c.AddTask((&nodetasks.Service{Name: "systemd-timesyncd"}).InitDefaults())
} else if b.Distribution.IsDebianFamily() {
c.AddTask(&nodetasks.Package{Name: "ntp"})
c.AddTask((&nodetasks.Service{Name: "ntp"}).InitDefaults())
} else if b.Distribution.IsRHELFamily() {
Expand Down

0 comments on commit 4dd5917

Please sign in to comment.