Open sticky-note opened 4 months ago
Hi @sticky-note
Thanks to open this issue, after to reviewed the documentation that you shared and more, I have decided don't implement that for few reasons, let me explain:
First as I answered in this comment https://github.com/elsudano/terraform-provider-vmworkstation/issues/12#issuecomment-1968945845 this functionality was thought to the cloud, and remember that, this provider is to test Terraform locally, in your laptop/server.
Second behind of this request we have a couple of implication to implement that, for example this cloud-init is fine to Linux but what happens with windows?
Third you need to keep in mind that Terraform and this provider is to manage the infrastructure, I mean, you will need to manage your deployments and your configuration separately, because you have different tools to manage this things, for example Ansible, in fact in all my projects I always use Terraform to create my VMs and then I use Ansible to configure my environment/server
I hope these point will be enough to explain the reasons why I can't implement this feature.
I will leave this issue open in order to inform at all users.
Hello @elsudano I open this feature request (as requested in #12) to implement
cloud-init
provisionning after cloning a machine. There is a little tutorial here: https://www.gwbasics.be/2023/04/cloud-init.htmlThe concept in the provider side may be simply to generate a
seed.iso
file with a Yaml File inside, feeded by values invmworkstation_vm
resource and attach it to the VM before cloning.