-
|
I'm currently using cloud-init for my VMs. I've created a template in PVE and I can use that to manually clone in the GUI. Using this provider I'm attempting to do the same, however my hang up is on specifying static IPs. I can create all of my VMs via terraform - but the IP is left empty. If I throw this in my main.tf
I get no errors via terraform plan - but I also have no IPs set on my cloned VMs. I'm probably making this more complicated than it needs to be. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
|
Hey @tmyoungjr 👋🏼 I'm pretty sure your config excerpt is incorrect, as it doesn't match the schema. Take a look at https://bpg.sh/docs/guides/cloud-init/ The static IP is part of the See https://bpg.sh/docs/guides for more examples, but honestly, you may not need a template per se if your source OS is Linux and you just need to install a couple of extra packages and run a few configuration commands. The cloud-init example above does just that — no template, but full initial configuration out-of-the-box using cloud-init. |
Beta Was this translation helpful? Give feedback.
Hey @tmyoungjr 👋🏼
I'm pretty sure your config excerpt is incorrect, as it doesn't match the schema. Take a look at https://bpg.sh/docs/guides/cloud-init/
The static IP is part of the
initializationblock. In your excerpt it's assigned to thenetworkattribute.See https://bpg.sh/docs/guides for more examples, but honestly, you may not need a template per se if your source OS is Linux and you just need to install a couple of extra packages and run a few configuration commands. The cloud-init example above does just that — no template, but full initial configuration out-of-the-box using cloud-init.