-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
systemd/system: add sshkeys@.service
this service allows to conditionnally start the `coreos-metadata-sshkeys@.service` on DO, EM, EC2 and GGE with the default `core` instance in order to control the `coreos-metadata-sshkeys@.service` from the generic image and not from the OEM. Signed-off-by: Mathieu Tortuyaux <mtortuyaux@microsoft.com>
- Loading branch information
Showing
2 changed files
with
28 additions
and
0 deletions.
There are no files selected for viewing
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 @@ | ||
../sshkeys@.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,27 @@ | ||
[Unit] | ||
ConditionKernelCommandLine=|ignition.platform.id=packet | ||
ConditionKernelCommandLine=|flatcar.oem.id=packet | ||
ConditionKernelCommandLine=|coreos.oem.id=packet | ||
|
||
ConditionKernelCommandLine=|ignition.platform.id=ec2 | ||
ConditionKernelCommandLine=|flatcar.oem.id=ec2 | ||
ConditionKernelCommandLine=|coreos.oem.id=ec2 | ||
|
||
ConditionKernelCommandLine=|ignition.platform.id=digitalocean | ||
ConditionKernelCommandLine=|flatcar.oem.id=digitalocean | ||
ConditionKernelCommandLine=|coreos.oem.id=digitalocean | ||
|
||
ConditionKernelCommandLine=|ignition.platform.id=gce | ||
ConditionKernelCommandLine=|flatcar.oem.id=gce | ||
ConditionKernelCommandLine=|coreos.oem.id=gce | ||
|
||
Upholds=coreos-metadata-sshkeys@%i.service | ||
|
||
[Service] | ||
Type=oneshot | ||
RemainAfterExit=yes | ||
ExecStart=/bin/true | ||
|
||
[Install] | ||
WantedBy=multi-user.target | ||
DefaultInstance=core |