-
Notifications
You must be signed in to change notification settings - Fork 1.5k
upi/metal: Add pxe_kernel_args, stop using pxe_os_image_url #3865
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
Changes from all commits
4008d35
1f9aaac
a53180b
e408a4d
4bc5a88
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -15,8 +15,6 @@ locals { | |
|
|
||
| # "rd.break=initqueue" | ||
| "coreos.inst=yes", | ||
|
||
|
|
||
| "coreos.inst.image_url=${var.pxe_os_image_url}", | ||
| "coreos.inst.install_dev=sda", | ||
|
||
| "coreos.inst.skip_media_check", | ||
|
||
| ] | ||
|
|
@@ -52,6 +50,7 @@ resource "matchbox_profile" "master" { | |
| args = concat( | ||
| local.kernel_args, | ||
| ["coreos.inst.ignition_url=${var.matchbox_http_endpoint}/ignition?cluster_id=${var.cluster_id}&role=master"], | ||
| [var.pxe_kernel_args], | ||
| ) | ||
|
|
||
| raw_ignition = file(var.master_ign_file) | ||
|
|
@@ -68,6 +67,7 @@ resource "matchbox_profile" "worker" { | |
| args = concat( | ||
| local.kernel_args, | ||
| ["coreos.inst.ignition_url=${var.matchbox_http_endpoint}/ignition?cluster_id=${var.cluster_id}&role=worker"], | ||
| [var.pxe_kernel_args], | ||
| ) | ||
|
|
||
| raw_ignition = file(var.worker_ign_file) | ||
|
|
@@ -134,7 +134,10 @@ module "bootstrap" { | |
|
|
||
| pxe_kernel = local.pxe_kernel | ||
| pxe_initrd = local.pxe_initrd | ||
| pxe_kernel_args = local.kernel_args | ||
| pxe_kernel_args = concat( | ||
| local.kernel_args, | ||
| [var.pxe_kernel_args], | ||
| ) | ||
| matchbox_http_endpoint = var.matchbox_http_endpoint | ||
| igntion_config_content = file(var.bootstrap_ign_file) | ||
|
|
||
|
|
||
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.
can the user pass multiple args? if so can we include an example of that? and make sure it will actually work?
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 think we should support providing multiple arguments yes; there are various use cases for that, especially debugging. But I wouldn't block on it.
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.
right now they could, I assume by using a space delimited string, I assume there's a better type for this in tfvars?
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.
If it is space separated, then can we show that as example in the description.
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.
also since you are changing the input variable, can you also update https://github.com/openshift/installer/blob/fa2d5bbe2ba00b36c697de7ff0658f51df36a20a/upi/metal/terraform.tfvars.example
and also updating docs on how to provide the os image url with this new input variable, maybe here https://github.com/openshift/installer/blob/fa2d5bbe2ba00b36c697de7ff0658f51df36a20a/docs/user/metal/install_upi.md#required-kernel-parameters-during-pxe
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.
@abhinavdahiya Thanks, 0402482 should have docs updates. If there's a more backwards compatible manner to have made this change let me know if you think I should pursue other options.