-
Notifications
You must be signed in to change notification settings - Fork 112
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
Support creating templates from existing vApps #1215
Conversation
15af1ba
to
040c5dc
Compare
040c5dc
to
0a7bf61
Compare
Signed-off-by: Dainius Serplis <dserplis@vmware.com>
9a686e4
to
04707d0
Compare
Signed-off-by: Dainius Serplis <dserplis@vmware.com>
Signed-off-by: Dainius Serplis <dserplis@vmware.com>
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.
Nice!! Few suggestions inline.
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.
First scan, need to run the tests
Signed-off-by: Dainius Serplis <dserplis@vmware.com>
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.
Finished the review. LGTM! Will approve once my tests run finishes.
Signed-off-by: Dainius Serplis <dserplis@vmware.com>
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.
Ran vm
tag tests with 10.5.1, all OK!
Signed-off-by: Dainius Serplis <dserplis@vmware.com>
Signed-off-by: Dainius Serplis <dserplis@vmware.com>
Signed-off-by: Dainius Serplis <dserplis@vmware.com>
This PR adds support for creating (capturing) vApp templates from existing vApps.
The main functionality is added to resource
vcd_catalog_vapp_template
via new configuration blockcapture_vapp
. Previously this resource was able to upload a vApp template using ova_path or pass ovf_url and now it has third optioncapture_vapp
.Additionally a few convenience features were added to better acomodate vApp capturing support:
vcd_vapp_vm
/vcd_vm
expose computed fieldvapp_id
- this is especially important for Standalone VMs (vcd_vm
) as they do have a parent vApp that is hidden. When creating a vApp template from standalone VM, one must supply that parent vApp ID (newvapp_id
field), not the VM ID.vcd_catalog_vapp_template
exposes additional attributecatalog_item_id
for related Catalog ItemID. It can be useful if one wishes to overwrite existing template when using
capture_vapp.0.overwrite_catalog_item_id
functionalityAcceptance tests passed on 10.4.0, 10.4.2, 10.5.1