-
Notifications
You must be signed in to change notification settings - Fork 158
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move chrony config from generator to systemd service
With latest changes from systemd, we now run certain steps before NetworkManager.service to access and write to /etc/sysconfig/network. Issue: coreos/fedora-coreos-tracker#1402
- Loading branch information
1 parent
192c8e3
commit 5e4f40c
Showing
5 changed files
with
43 additions
and
40 deletions.
There are no files selected for viewing
2 changes: 2 additions & 0 deletions
2
overlay.d/20platform-chrony/usr/lib/systemd/system-preset/20-fcos.preset
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
# To inspect the platform and configure chrony | ||
enable coreos-platform-chrony-config.service |
4 changes: 4 additions & 0 deletions
4
overlay.d/20platform-chrony/usr/lib/systemd/system/chronyd.service.d/platform-chrony.conf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
# Override chrony configuration with the output of | ||
# coreos-platform-chrony-config.service. | ||
[Service] | ||
EnvironmentFile=-/run/coreos/sysconfig-chrony |
15 changes: 15 additions & 0 deletions
15
overlay.d/20platform-chrony/usr/lib/systemd/system/coreos-platform-chrony-config.service
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
[Unit] | ||
Description=CoreOS Configure Chrony Based On The Platform | ||
ConditionKernelCommandLine=|ignition.platform.id=azurestack | ||
ConditionKernelCommandLine=|ignition.platform.id=azure | ||
ConditionKernelCommandLine=|ignition.platform.id=aws | ||
ConditionKernelCommandLine=|ignition.platform.id=gcp | ||
Before=NetworkManager.service | ||
Before=chronyd.service | ||
|
||
[Service] | ||
Type=oneshot | ||
ExecStart=/usr/libexec/coreos-platform-chrony-config | ||
RemainAfterExit=yes | ||
[Install] | ||
WantedBy=multi-user.target |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 0 additions & 14 deletions
14
tests/kola/ntp/chrony/coreos-platform-chrony-generator-permissions
This file was deleted.
Oops, something went wrong.