mirror of
https://github.com/openshift/openshift-docs.git
synced 2026-02-05 12:46:18 +01:00
30 lines
902 B
YAML
30 lines
902 B
YAML
# Automatically generated by extra-manifests-builder
|
|
# Do not make changes directly.
|
|
apiVersion: machineconfiguration.openshift.io/v1
|
|
kind: MachineConfig
|
|
metadata:
|
|
labels:
|
|
machineconfiguration.openshift.io/role: worker
|
|
name: 99-sync-time-once-worker
|
|
spec:
|
|
config:
|
|
ignition:
|
|
version: 3.2.0
|
|
systemd:
|
|
units:
|
|
- contents: |
|
|
[Unit]
|
|
Description=Sync time once
|
|
After=network-online.target
|
|
Wants=network-online.target
|
|
[Service]
|
|
Type=oneshot
|
|
TimeoutStartSec=300
|
|
ExecCondition=/bin/bash -c 'systemctl is-enabled chronyd.service --quiet && exit 1 || exit 0'
|
|
ExecStart=/usr/sbin/chronyd -n -f /etc/chrony.conf -q
|
|
RemainAfterExit=yes
|
|
[Install]
|
|
WantedBy=multi-user.target
|
|
enabled: true
|
|
name: sync-time-once.service
|