-
Notifications
You must be signed in to change notification settings - Fork 182
Add Katello support for RHVH/oVirt Node provisioning #466
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Small typo -- otherwise looks great
@@ -20,9 +21,32 @@ This kickstart will only work with LVM THIN partitioning ('Kickstart default thi | |||
and it requires the installation URL to have squashfs.img image extracted in the | |||
root folder (or specified via 'liveimg_name' parameter). See oVirt Node documentation | |||
or RHV Installation Manual, section 5.2. Advanced installation. | |||
|
|||
By defult, the template expects the squashfs.img to be present inside |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Small typo here
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Updated
Can you merge |
There is another difference, which is that the 'liveimg_content_path` also enforces using the subscription manager. If I unified those two, I would need another parameter to specify, that the katello url should be used, instead of installation media. If we want to eliminate the number of parameters, I would probably go for not exposing |
Leverages `repository_url` helper to generate full url to Katello-provided squashfs img, based on relative path.
3432c43
to
de4f4c3
Compare
Yes, that's another reason why to merge it, this is a side effect you don't want to always have. Imagine a Katello user doing CentOS CV provisioning, or even SUSE or Debian which is coming. We still want to expose a plain URL because this will be useful in non-oVirt provisioning, you can create your own image/squashimg and provision normal OS using this technique, this is in Anaconda starting from RHEL 7.3 and it's a valid provisioning option. We want to have the same parameter also in normal kickstart, not only oVirt. I am searching for consistency between katello and non-katello users and ovirt and non-ovirt users, please don't get me wrong. |
Unifying |
There is already a condition there: |
@iNecas this has been merged recently I wonder if this template can be designed in the same way, I think so. We can remove the RHVH name check and simply use the snippet, it will render to nothing when there is no rhsm available. |
Also, eliminates the number of parameters needed to be set to specify the relative path to the liveimg image, reusing the liveimg_name for the Katello use case.
Good idea, updated |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Anyway, I am fine with that. Thanks.
<% | ||
liveimg_name = host_param('liveimg_name') || 'squashfs.img' | ||
if host_param('kt_activation_keys') | ||
liveimg_url = repository_url(liveimg_name, 'isos') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Where repository_url helper is defined? Can't find it in katello codebase.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I mentioned that in the first comment: Katello/katello#7215 - it's close to merge.
Haven't tried the katello workflow, but I am good with this. TY |
@lzap - in which Foreman version will it be available? |
Hello @mykaul it's 1.19 but you can easily import fresh templates via foreman_templates plugin into any Foreman release. |
Note we do have stable-x.y branches and we should be importing those into .z releases. You can create a PR against those branches so they'll be synced on the next release. |
Leverages
repository_url
helper to generate full url toKatello-provided squashfs img, based on relative path.
Requires Katello/katello#7215
The process I was following was:
With this patch (and the katello PR), this will lead to using http://katello.example.com/pulp/isos/Default_Organization/Library/custom/RHV/rhvh/squashfs.img for liveimg