Hi,
I am trying to create VM with cloud-init configuration. VM is created using Packer and stored as VM Template on one of the nodes. Then creating new VMs with Terraform and everything works great. Then, when machines are up and done configuring using Cloud-Init, I apply Ansible. Now the configuration is great and working properly.
But here is my problem: when changing for example RAM with terraform the Cloud-Init re-runs on the VMs and ruins my configuration. Is there any way to run Cloud-Init only once, when VM is being created?
I am trying to create VM with cloud-init configuration. VM is created using Packer and stored as VM Template on one of the nodes. Then creating new VMs with Terraform and everything works great. Then, when machines are up and done configuring using Cloud-Init, I apply Ansible. Now the configuration is great and working properly.
But here is my problem: when changing for example RAM with terraform the Cloud-Init re-runs on the VMs and ruins my configuration. Is there any way to run Cloud-Init only once, when VM is being created?