knife-vsphere
knife-vsphere copied to clipboard
Server to be joined to the Domain Post Provisioning.
Versions:
- Version of knife-vsphere: 2.0.1
- Version of chef: 13.6.4
Platform Details
- Version of vSphere: Version 6.5.0.10000 Build 7119157
- Version of ESXi: 6.5.0
Scenario:
We have a requirement to join the VM to the Domain Post Provisioning. Kindly do let us know how can we achieve this through the commands.
Regards, Bhargavi.
Hi Bhargavi, the way we do it is to set that part up in VCenter as a customization then pass --cspec customization_name
on the command line.
There's a spot where you can enter a domain and then admin credentials, which keeps them on the vcenter server so you don't have to share them to anyone that needs to make a VM.
Hi Sean,
So, what if in case we have multiple domains. As the values are fixed in the customization specifications, Do we need to create separate customization templates for each domain?
Thanks & Regards.
Bhargavi.A. [cid:[email protected]] Vnet: 572301 Email: [email protected]mailto:[email protected]
From: Sean Walberg [email protected] Sent: Monday, August 20, 2018 7:09 PM To: chef-partners/knife-vsphere [email protected] Cc: Allada, Bhargavi (Cognizant) [email protected]; Author [email protected] Subject: Re: [chef-partners/knife-vsphere] Server to be joined to the Domain Post Provisioning. (#446)
Hi Bhargavi, the way we do it is to set that part up in VCenter as a customization then pass --cspec customization_name on the command line.
There's a spot where you can enter a domain and then admin credentials, which keeps them on the vcenter server so you don't have to share them to anyone that needs to make a VM.
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/chef-partners/knife-vsphere/issues/446#issuecomment-414319764, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AlGwdsjZeQp1yE7ABAXJ61Qt0pWrvn67ks5uSrwPgaJpZM4WD65m.
Yes, that's right.
https://github.com/chef-partners/knife-vsphere/wiki/Sample-plugin-to-do-unattended-Windows-installations has a sample plugin that has the bones of doing it on the command line if the cspec method doesn't work. We have a small handful of domains and it's not a huge deal to maintain separate cspecs. Just have to remember to update them when the credentials change!
Hi Sean,
Is there any way to pass the values in the recipes Dynamically by chance? For example, I amtrying to invoke the powershell script through chef using “Powershell_Script” resource and it is working well and good. So if I need to pass any value in my script dynamically/runtime, How can we achieve that?
Please help me out with the solution if any.
Regards, Bhargavi A Sr. Infra Developer – Cognizant Infrastructure Services [cid:[email protected]]
From: Sean Walberg [email protected] Sent: Monday, August 20, 2018 8:16 PM To: chef-partners/knife-vsphere [email protected] Cc: Allada, Bhargavi (Cognizant) [email protected]; Author [email protected] Subject: Re: [chef-partners/knife-vsphere] Server to be joined to the Domain Post Provisioning. (#446)
Yes, that's right.
https://github.com/chef-partners/knife-vsphere/wiki/Sample-plugin-to-do-unattended-Windows-installations has a sample plugin that has the bones of doing it on the command line if the cspec method doesn't work. We have a small handful of domains and it's not a huge deal to maintain separate cspecs. Just have to remember to update them when the credentials change!
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/chef-partners/knife-vsphere/issues/446#issuecomment-414341459, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AlGwdm5O4SF8sJh2L2K4DEex81k2V_jLks5uSsuigaJpZM4WD65m.