dmacvicar / terraform-provider-libvirt

Terraform provider to provision infrastructure with Linux's KVM using libvirt
Apache License 2.0
1.54k stars 457 forks source link

Use schema.TypeMap for metadata #941

Open atrawog opened 2 years ago

atrawog commented 2 years ago

I'm currently using the metadata field in openstack_compute_instance_v2 from the terraform-provider-openstack/openstack provider to set the metadata I need to use an instance together with Ansible.

  metadata = {
     group = "ansiblegroup"
     ansible_user = "debian"
   }

I would like to do the same with dmacvicar/terraform-provider-libvirt. But unfortunately the metadata type in dmacvicar/terraform-provider-libvirt is currently set to TypeString. This PR changes the type to TypeMap to make terraform deployments between openstack and libvirt behave consistently regarding metadata.