-
Notifications
You must be signed in to change notification settings - Fork 154
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
W.I.P [add] feature host_iso #130
base: master
Are you sure you want to change the base?
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.
If you would like to make this complete.
- You need to edit guest-read.go (to read the current settings)
- Edit guest-import.go (To import).
- Validate that an "apply" will fix "broken" cdrom settings. (ie, go to the console, change the cdrom settings, then make sure a "terraform apply" will fix the cdrom to your settings.)
esxi/guest-create.go
Outdated
vmx_contents = vmx_contents + | ||
fmt.Sprintf("ide1.present = \\\"TRUE\\\"\n") + |
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.
Dup line???
README.md
Outdated
@@ -202,6 +202,7 @@ Configuration reference | |||
* clone_from_vm - Source vm to clone. Mutually exclusive with ovf_source option. | |||
* ovf_source - ovf files or URLs to use as a source. Mutually exclusive with clone_from_vm option. | |||
* disk_store - Required - esxi Disk Store where guest vm will be created. | |||
* host_iso - Optional - Attaching an iso file on the ESXi host. - e.g. "datastore1/iso/centos.iso" |
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.
Could you rename this resource to "cdrom_datastore_iso". It will match (closer) the web gui description so it will be a bit more clear.
esxi/guest-create.go
Outdated
@@ -17,7 +18,7 @@ import ( | |||
|
|||
func guestCREATE(c *Config, guest_name string, disk_store string, | |||
src_path string, resource_pool_name string, strmemsize string, strnumvcpus string, strvirthwver string, guestos string, | |||
boot_disk_type string, boot_disk_size string, virtual_networks [10][3]string, | |||
boot_disk_type string, boot_disk_size string, virtual_networks [10][3]string, host_iso string, |
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 rename the variable to match the resource name. (cdrom_datastore_iso)
esxi/resource_guest.go
Outdated
Optional: true, | ||
ForceNew: false, | ||
Default: nil, | ||
Description: "Path on exsi host of iso file(e.g. datastore1/iso/centos.iso).", |
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.
Typo "exsi"
Allows the attachment of an iso file on the ESXi host.