Skip to content

Commit 920a25a

Browse files
authored
Merge pull request #14690 from vickeybrown/CMP-3618-chrony-wait-fix
CMP-3618 broke kubernetes remediation into two
2 parents 835f166 + d4890c7 commit 920a25a

1 file changed

Lines changed: 21 additions & 1 deletion

File tree

  • linux_os/guide/services/ntp/chronyd_configure_local_socket/kubernetes

linux_os/guide/services/ntp/chronyd_configure_local_socket/kubernetes/shared.yml

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,31 @@
1-
---
21
# platform = multi_platform_fedora,multi_platform_rhel,multi_platform_rhcos
32
# reboot = true
43
# strategy = restrict
54
# complexity = low
65
# disruption = low
6+
---
7+
apiVersion: machineconfiguration.openshift.io/v1
8+
kind: MachineConfig
9+
metadata:
10+
annotations:
11+
complianceascode.io/ocp-version: '<4.13.0'
12+
spec:
13+
config:
14+
ignition:
15+
version: 3.1.0
16+
storage:
17+
files:
18+
- contents:
19+
source: data:,%5BUnit%5D%0ADescription%3DWait%20for%20chrony%20to%20synchronize%20system%20clock%20%28KCS%207064388%29%0ADocumentation%3Dman%3Achronyc%281%29%0AAfter%3Dchronyd.service%0ARequires%3Dchronyd.service%0ABefore%3Dtime-sync.target%0AWants%3Dtime-sync.target%0A%0A%5BService%5D%0AType%3Doneshot%0AExecStart%3D%2Fusr%2Fbin%2Fchronyc%20waitsync%200%200.1%200.0%201%0ATimeoutStartSec%3D180%0ARemainAfterExit%3Dyes%0AStandardOutput%3Dnull%0A%0A%5BInstall%5D%0AWantedBy%3Dmulti-user.target%0A
20+
mode: 420
21+
overwrite: true
22+
path: /etc/systemd/system/chrony-wait.service
23+
---
724
apiVersion: machineconfiguration.openshift.io/v1
825
kind: MachineConfig
26+
metadata:
27+
annotations:
28+
complianceascode.io/ocp-version: '>=4.13.0'
929
spec:
1030
config:
1131
ignition:

0 commit comments

Comments
 (0)