Skip to content

Conversation

@nofaralfasi
Copy link
Contributor

@nofaralfasi nofaralfasi commented Apr 17, 2025

Add SecureBoot and VirtualTPM options for image-based provisioning on VMware

Requiers: fog/fog-vsphere#309

@nofaralfasi nofaralfasi changed the title Fixes #38363 - fix image provisioning on VMware Fixes #38363 - fix image-based provisioning on VMware Apr 17, 2025
@nofaralfasi nofaralfasi changed the title Fixes #38363 - fix image-based provisioning on VMware Fixes #38381 - fix image-based provisioning on VMware Apr 24, 2025
@nofaralfasi nofaralfasi force-pushed the 38381 branch 2 times, most recently from 93c105d to 8393725 Compare April 24, 2025 10:58
@stejskalleos stejskalleos self-assigned this Apr 28, 2025
# @return [Hash] A hash with secure boot settings if applicable.
def generate_secure_boot_settings(firmware)
firmware == 'uefi_secure_boot' ? { "secure_boot" => true } : {}
firmware == 'uefi_secure_boot' ? { secure_boot: true } : {}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What's the reasoning for this change?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The reason for the change is this line:
https://github.com/theforeman/foreman/pull/10524/files#diff-be4ac4f95deb530eb0fbcc834a4940573ba45b8d5923433305ac3aa1e0703328R596

I updated it so I can use the :secure_boot symbol key consistently with the rest of the opts hash, instead of mixing it with a string key ("secure_boot" => args["secure_boot"]).

Add SecureBoot and VirtualTPM options for image-based provisioning,
and for VM cloning on VMware.
Copy link
Contributor

@Gauravtalreja1 Gauravtalreja1 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ACK, tested and it works as expected.

Thank you @nofaralfasi :)

@stejskalleos stejskalleos merged commit 22d6968 into theforeman:develop May 6, 2025
28 of 31 checks passed
@stejskalleos
Copy link
Contributor

Thanks @nofaralfasi @Gauravtalreja1

@ekohl
Copy link
Member

ekohl commented May 6, 2025

Requiers: fog/fog-vsphere#309

If you require a change in a dependency then you must also make sure to update the dependency minimum version. Otherwise you still risk users ending up in a broken situation. For example, if we cherry pick it and forget to package the dependency.

@chris1984
Copy link
Member

Requiers: fog/fog-vsphere#309

If you require a change in a dependency then you must also make sure to update the dependency minimum version. Otherwise you still risk users ending up in a broken situation. For example, if we cherry pick it and forget to package the dependency.

@ekohl I made the version bump 3.7.1 since it was just mostly bug and test fixes in this pr theforeman/foreman-packaging#11985 This keeps us safely in gem 'fog-vsphere', '>= 3.7.0', '< 4.0' which is what is in develop

@ekohl
Copy link
Member

ekohl commented May 7, 2025

@nofaralfasi can you submit a PR that bumps the requirement to at least 3.7.1?

@nofaralfasi
Copy link
Contributor Author

submit a PR that bumps the requirement to at least 3.7.1?

Done #10537.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants