Skip to content

grantorchard/terraform-vsphere-cloudinit-dynamic

Repository files navigation

Cloud-Init Sample

This repo provides an example of deploying a Ubuntu machine with dynamically generated metadata and userdata files included in the templates directory.

Cloud-init configuration is provided via the VMware guestinfo datasource. A sample Packer build that has the relevant dependencies pre-installed can be found here.

To leverage the example of switching between DHCP and static IP addressing, you will need to set the dhcp variable value to true or false, and update the vars block for the metadata file_template resource in the config.tf file.

About

Sample Terraform code for a dynamic cloud-init file on vSphere

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages