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

known_hosts_verify and no-verify are ignored in uri #874

Open h3b4r1 opened 2 years ago

h3b4r1 commented 2 years ago

System Information

Linux distribution

Centos8

Terraform version

Terraform v1.0.4 on linux_amd64

Provider and libvirt versions

0.6.10

If that gives you "was not built correctly", get the Git commit hash from your local provider repository:

Installed via init


Checklist

Description of Issue/Question

The plugin doesn't seem to respond to uri parameters "known_hosts_verify or no-verify" this causes the connection to fail

Setup

Configure the Libvirt provider

terraform { required_providers { libvirt = { source = "dmacvicar/libvirt" version = "0.6.10" } ansible = { source = "nbering/ansible" version = "1.0.4" } } }

provider "libvirt" { uri = "qemu+ssh://ansible@lshyp01.lab/system?known_hosts_verify=ignore&keyfile=/home/ansible/.ssh/id_rsa" }

Steps to Reproduce Issue

run main with a valid host. Also configure an ansible user with key based auth for ssh


Additional information: