Skip to content

Commit

Permalink
systemd: enable sshkeys unit on supported platforms
Browse files Browse the repository at this point in the history
Add `ConditionKernelCommandLine` triggering conditions so that
the `[email protected]` unit is enabled on supported
platforms only.

Note this only adds conditions for platforms where the cloud
metadata provider is also identified through `ignition.platform.id`.

Part of: coreos/fedora-coreos-tracker#4
  • Loading branch information
Robert Fairley committed May 16, 2019
1 parent 1436886 commit 25ed3f3
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions systemd/[email protected]
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
[Unit]
Description=Afterburn (SSH Keys)
ConditionKernelCommandLine=|ignition.platform.id=aws
ConditionKernelCommandLine=|ignition.platform.id=azure
ConditionKernelCommandLine=|ignition.platform.id=digitalocean
ConditionKernelCommandLine=|ignition.platform.id=gcp
ConditionKernelCommandLine=|ignition.platform.id=packet

[Service]
Type=oneshot
Expand Down

0 comments on commit 25ed3f3

Please sign in to comment.