From 74d13e5f4c6c14c9ac43b75a8c9281501a930b6f Mon Sep 17 00:00:00 2001 From: Philippe Caseiro Date: Thu, 19 Oct 2023 14:34:38 +0200 Subject: [PATCH] fix(vmware): adding missing variable file --- modules/vmware/variables.tf | 61 +++++++++++++++++++++++++++++++++++++ 1 file changed, 61 insertions(+) create mode 100644 modules/vmware/variables.tf diff --git a/modules/vmware/variables.tf b/modules/vmware/variables.tf new file mode 100644 index 0000000..eb9833c --- /dev/null +++ b/modules/vmware/variables.tf @@ -0,0 +1,61 @@ +variable "vms" { + type = map(object( + { + domain = string + cpu = number + ram = number + guest_id = string + ovf_deploy = map(object({ + allow_unverified_ssl_cert = bool + local_ovf_path = string + disk_provisioning = string + deployment_option = map(object({ + default = string + })) + })) + disks = map(object({ + size = string + thin_provisioned = bool + unit_number = number + })) + network_interfaces = list(object( + { + id = string + mac = string + } + )) + folder = string + } + )) + description = "Virtual Machines description" +} + +variable "cluster" { + type = object({ + datacenter_name = string + datastore_name = string + resource_pool_name = string + folder = string + vnets = map(object({ + name = string + })) + } + ) + description = "vSphere cluster definition" +} + +variable "ovfs" { + type = map(object( + { + domain = string + allow_unverified_ssl_cert = bool + remote_ovf_url = string + disk_provisioning = string + ip_protocol = string + ip_allocation_policy = string + network_map = list(string) + vapp_properties = object({}) + } + )) + description = "Virtual Machines description" +} \ No newline at end of file