Hi,
I configure a vsphere_virtual_machine resource to configure the DNS server lists and domains, but isn’t possible to add also some options like “options rotate”.
The configuration block is:
clone {
template_uuid = data.vsphere_content_library_item.content_library_template.id
customize {
linux_options {
host_name = "${var.vm_infra_lvs_dc2_hostname}${format("%02d", count.index + 1)}"
domain = var.vm_domain
}
network_interface {
ipv4_address = join("", element(data.dns_a_record_set.infra_lvs_dc2.*.addrs, count.index))
ipv4_netmask = var.vm_infra_lvs_dc2_ipv4_netmask
}
ipv4_gateway = var.vm_infra_lvs_dc2_ipv4_gateway
dns_suffix_list = var.vm_dns_suffix_list
dns_server_list = var.vm_dns_server_list
}
}
Is it possible to use cloud-init to append the configuration?
Thanks,
Marcello