Skip to content

Commit

Permalink
Merge pull request containers#17871 from openshift-cherrypick-robot/c…
Browse files Browse the repository at this point in the history
…herry-pick-17661-to-v4.4

[v4.4] podman machine: Adjust Chrony makestep config
  • Loading branch information
openshift-merge-robot authored Mar 21, 2023
2 parents 59ce20d + 53212ea commit 85fcf42
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions pkg/machine/ignition.go
Original file line number Diff line number Diff line change
Expand Up @@ -513,6 +513,34 @@ Delegate=memory pids cpu io
}
}

files = append(files, File{
Node: Node{
User: getNodeUsr("root"),
Group: getNodeGrp("root"),
Path: "/etc/chrony.conf",
},
FileEmbedded1: FileEmbedded1{
Append: []Resource{{
Source: encodeDataURLPtr("\nconfdir /etc/chrony.d\n"),
}},
},
})

// Issue #11541: allow Chrony to update the system time when it has drifted
// far from NTP time.
files = append(files, File{
Node: Node{
User: getNodeUsr("root"),
Group: getNodeGrp("root"),
Path: "/etc/chrony.d/50-podman-makestep.conf",
},
FileEmbedded1: FileEmbedded1{
Contents: Resource{
Source: encodeDataURLPtr("makestep 1 -1\n"),
},
},
})

return files
}

Expand Down

0 comments on commit 85fcf42

Please sign in to comment.