-
Notifications
You must be signed in to change notification settings - Fork 109
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
systemd: enable sshkeys unit on supported platforms #217
Conversation
Tested on FCOS - this avoids an error when using a non-cloud platform such as I wonder if we should go ahead and enable all the supported platforms that are listed in the README. For FCOS however, some values of Alternatively this could go the other way, e.g. add a condition |
For the record, we didn't have this problem on Container Linux because the sshkeys service was enabled by the OEM-specific Ignition config. Your approach is a better way to do this, though. We should add all the platforms for which Afterburn supports retrieving SSH keys. You're right that OpenStack and CloudStack are a problem, though. Afterburn providers are intentionally not the same as Ignition platforms. The expected flow for these platforms is that the user will tell CT that they're on On FCOS... maybe CT should add the triggering condition on those platforms, since it's writing a drop-in anyway? @ajeddeloh? |
CT adding the platform specific makes sense to me, but I'm also fine with this. Given CT doesn't quite exist yet I'm in favor of merging this now and possibly revisiting it later? |
I was suggesting having CT handle it for the specific cases where Afterburn can't run without CT writing a drop-in first. So this PR would add triggering conditions for every provider except CloudStack, OpenStack, and VirtualBox (which doesn't support SSH keys). |
Ah, gotcha. Works for me. |
This clarifies the difference a lot - thanks!
Makes sense - will update the PR for this. |
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
f68f56c
to
25ed3f3
Compare
Updated (also updated the commit message)! |
@bgilbert just to be clear, your plan here is for CT to write both a |
@lucab I was thinking both directives would be in the same drop-in, but yes. |
I posted a follow-up in #218 to solidify my understanding of how all this will get wired up. |
With coreos/afterburn#217 in Fedora, enable this unit in FCOS.
With coreos/afterburn#217 in Fedora, enable this unit in FCOS.
With coreos/afterburn#217 in Fedora, enable this unit in FCOS.
With coreos/afterburn#217 in Fedora, enable this unit in FCOS.
Add ConditionKernelCommandLine triggering conditions so that
the [email protected] unit is enabled only when recognized
cloud platforms are specified through
ignition.platform.id
.For now, these platforms are
azure
andpacket
which arecurrently supported in the
afterburn-checkin
andafterburn-firstboot-checkin
services.Part of: coreos/fedora-coreos-tracker#4