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

Ability to convert newly created VM into a template #267

Open
morganatkins24 opened this issue Aug 17, 2018 · 1 comment
Open

Ability to convert newly created VM into a template #267

morganatkins24 opened this issue Aug 17, 2018 · 1 comment

Comments

@morganatkins24
Copy link

Background

As part of my workflow it would be ideal for Vagrant to clone a Template, provision it, and then produce a new vSphere Template.
Currently 'vagrant-vsphere' only allows the creation of a new VirtualMachine on vSphere.

Proposal

'vagrant-vsphere' should have an option to convert the VirtualMachine to a vSphere Template after the provisioning is finished.

Proposed Workflow

A new configuration parameter is added:
vsphere.convert_to_template = true / false
Option should default to false

@DamonStamper
Copy link

You might want to look into using Packer for this as Packer is designed to make templates. Vagrant is supposed to provision instances of templates.

Specifically take a look at https://github.com/jetbrains-infra/packer-builder-vsphere to build a VM (from another VM/Template even) then use https://github.com/hashicorp/packer/blob/master/website/source/docs/post-processors/vsphere-template.html.md to convert the output to a template.

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

No branches or pull requests

2 participants