You are here: Home / LBN / Up2date / Cloud Computing / BastionLinux 19 / golang-github-dmacvicar-terraform-provider-libvirt-0-0.1.gitfdd1335.lbn19.x86_64

golang-github-dmacvicar-terraform-provider-libvirt-0-0.1.gitfdd1335.lbn19.x86_64

Package Attributes
RPM  golang-github-dmacvicar-terraform-provider-libvirt-0-0.1.gitfdd1335.lbn19.x86_64.rpm Architecture  x86_64 Size  14101845 Created  2019/09/30 07:00:03 UTC
Package Specification
Summary Terraform provider for libvirt
Group Unspecified
License APLv2
Home Page http://github.com/dmacvicar/terraform-provider-libvirt
Description

This is a terraform provider that lets you provision servers on a libvirt host via Terraform.

You should update your .terraformrc and refer to the binary:

providers { libvirt = "/usr/share/terraform/terraform-provider-libvirt" }

Using the provider

Here is an example that will setup the following:

A virtual server resource

(create this as libvirt.tf and run terraform commands from this directory):

provider "libvirt" { uri = "qemu:///system" }

You can also set the URI in the LIBVIRT_DEFAULT_URI environment variable.

Now, define a libvirt domain:

resource "libvirt_domain" "terraform_test" { name = "terraform_test" }

Now you can see the plan, apply it, and then destroy the infrastructure:

$ terraform plan $ terraform apply $ terraform destroy

Requires
rpmlib(PayloadFilesHavePrefix)  
rpmlib(FileDigests)  
rpmlib(CompressedFileNames)  
rpmlib(PayloadIsXz)  
Provides
golang-github-dmacvicar-terraform-provider-libvirt
golang-github-dmacvicar-terraform-provider-libvirt(x86-64)
terraform(provider-libvirt)

Document Actions