Skip to content
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

Pass bash script to guest customization #22836

Open
agrare opened this issue Jan 11, 2024 Discussed in #22817 · 2 comments
Open

Pass bash script to guest customization #22836

agrare opened this issue Jan 11, 2024 Discussed in #22817 · 2 comments

Comments

@agrare
Copy link
Member

agrare commented Jan 11, 2024

Discussed in https://github.com/orgs/ManageIQ/discussions/22817

Originally posted by oysterme1ster December 19, 2023
Hi,
When we use customization spec, we can override parameters like like (ip_addr, subnet_netmask, hostname etc.)
Is the are possible to pass the script (bash for example) into vmWare Customspec as parameter?


agrare replied
Hi @oysterme1ster we would pass a scriptText parameter to the VMware CustomizationLinuxPrep property, https://vdc-download.vmware.com/vmwb-repository/dcr-public/184bb3ba-6fa8-4574-a767-d0c96e2a38f4/ba9422ef-405c-47dd-8553-e11b619185b2/SDK/vsphere-ws/docs/ReferenceGuide/vim.vm.customization.LinuxPrep.html

This appears to be new since 7.0, we don't currently support it but I think that's a great RFE

@Fryguy
Copy link
Member

Fryguy commented Jan 11, 2024

Is that a feature of vmware's customization spec itself, or would we need to pre-process the spec ourselves? nvm - I see you answered that in the discussion - I'll copy that to the OP

@agrare
Copy link
Member Author

agrare commented Jan 11, 2024

Is that a feature of vmware's customization spec itself, or would we need to pre-process the spec ourselves?

Yeah the user could create a VMware CustomizationSpec with that script already and we would just use that, the question was about overriding things in a customizationspec which we don't have currently.

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

No branches or pull requests

2 participants