Katello / katello-client-bootstrap

Bootstrap Script for migrating systems to Foreman & Katello
GNU General Public License v2.0
52 stars 63 forks source link

[WIP] Connection Healthcheck option #295

Open sideangleside opened 5 years ago

sideangleside commented 5 years ago

Based upon a few requests I have gotten, I want to propose the following patch to check the health of a Foreman installation prior to registration. The general premise being:

If the services fail the health-check, exit, and remove the katello-ca-consumer-latest package.

Questions that I have:

evgeni commented 5 years ago

I think 1000ms is enough, but I've long not seen heavy used katello installs :woman_shrugging:

One thing that bothers me with this setup: we do changes to the bootstraped system, before telling "oh, no, we won't bootstrap today". And while we do try to revert those changes (you clean the ca rpm), the system is not (might not) be bit-identical as before. So yes, I think piggy-backing this ontop of #209 and making it not even install the CA RPM would be awesome.

(My worry case is when migrating from one Katello to another, we already removed the old CA rpm, but we cannot reliably restore it and thus leave the machine without updates)