Skip to content

Commit

Permalink
Configure ntp servers earlier
Browse files Browse the repository at this point in the history
  • Loading branch information
simcod committed Dec 19, 2024
1 parent f6b3dbd commit 3951e18
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 0 additions & 3 deletions cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -96,9 +96,6 @@ func Run(log *slog.Logger, spec *Specification, hal hal.InBand) (*event.EventEmi
return eventEmitter, fmt.Errorf("interfaces %w", err)
}

// Set Time from ntp
network.NtpDate(log, spec.MetalConfig.NTPServers)

reg := register.New(log, spec.MachineUUID, spec.MetalConfig.Partition, bootService, eventEmitter, n, hal)

err = reg.RegisterMachine()
Expand Down
4 changes: 4 additions & 0 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,10 @@ func main() {
log.Info("starting", "version", v.V.String(), "hal", hal.Describe())

spec := cmd.NewSpec(log)

// Set Time from ntp
network.NtpDate(log, spec.MetalConfig.NTPServers)

spec.MachineUUID = uuid.String()
spec.IP = ip

Expand Down

0 comments on commit 3951e18

Please sign in to comment.