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
Support curl'ing to a URL during install to a provisioning system #21
Comments
Implemented this in #25 have fun. |
Thanks @lzap - This seems like a reasonable request. We'll consider it along with other similar requests and try to have a solution for this problem in the next iteration of the installer. |
@dustymabe |
From #25 (comment):
|
coreos/fedora-coreos-tracker#105 closed. |
The separate Fedora CoreOS installer images are no longer shipped, and the live ISO and live PXE images can now run the installer. It's possible to pass them an Ignition config which adds additional systemd units. This unit (untested) should report success to Foreman after the install is complete:
This should work today. We're still working out some ergonomics, though. Ideally the Ignition config could also configure the installer directly, but today that's not straightforward; you'd need to pass both |
@bgilbert - from that I read that the outstanding items are:
|
so how should this work? i create the ignition files manually with the openshift installer, then i have to hack something like this into the right place in the bootstrap.ign // master.ign // worker.ign
ok but a vm needs to report a build token back to foreman, how i get the dynamically created build token for the vm into the systemd service which calls back to foreman? can't hardcode it because multiple vm's (ex. 3 worker nodes) use the same ignition config just in my opinion its a really big hoax that there is still no viable way to provision openshiftv4 cluster out of foreman // satellite |
Note that there are two separate Ignition configs. The one created by the OpenShift installer is for the installed nodes. The one with the Foreman unit above is for the single boot of the live system that runs We're working on better integration of the new installer with RHCOS. Until then, while it should technically be possible to install RHCOS with the FCOS coreos-installer, I wouldn't recommend doing that in production workflows. |
Thanks @bgilbert. Is there any CoreOS build I can use to PXE boot and test this feature available? |
@lzap latest FCOS? |
WIth the new rust based installer that runs in the real root (not intramfs) of our Live ISO/PXE artifacts you can do a custom install and curl URLs.. Here is a tutorial for how to do that: https://dustymabe.com/2020/04/04/automating-a-custom-install-of-fedora-coreos/ We need to get this added to our documentation, but I think we can probably close this issue now. |
I'm installing via PXE (with Foreman/Red Hat Satellite) and its working great!
The typical flow with Foreman is:
The issue I have is that there is no way to do step 4 with CoreOS. As a result, the host permanently stays in build mode and re-installs on every reboot. Manually cancelling the build in Foreman works, but must be done at the right time and ruins the automation of it all.
It would be great if there was a way to curl an arbitrary URL to inform Foreman or any PXE based build system to reset the config to properly complete the installation.
In the case of Foreman, the URL is unique and generated for each build. The pxelinux.cfg files are generated from templates, so I'm including that URL in the hopes of one day being able to pick it up (e.g. from /proc/cmdline) during install and curl'ing it.
Here's my PXE config for reference:
I'd like to curl that
forman_url=http://foreman.example.com/unattended/built?token=fc697858-ecb2-4e49-bb22-a641d3fc22d3
before it is too late.The text was updated successfully, but these errors were encountered: