Personal tools
Skip to content. | Skip to navigation
Terraform docker provider
Terraform chef provider
Terraform azurerm provider
Terraform aws provider
export IC_API_KEY="IBM Cloud API Key" export SL_API_KEY="SoftLayer API Key" export SL_USERNAME="SoftLayer username associated with SL_API_KEY". Add the plug-in provider to the Terraform configuration file. provider "ibm" {}
Terraform is a tool for building, changing, and versioning infrastructure safely and efficiently. Terraform can manage existing and popular service providers as well as custom in-house solutions. The key features of Terraform are: Infrastructure as Code: Infrastructure is described using a high-level configuration syntax. This allows a blueprint of your datacenter to be versioned and treated as you would any other code. Additionally, infrastructure can be shared and re-used. Execution Plans: Terraform has a "planning" step where it generates an execution plan. The execution plan shows what Terraform will do when you call apply. This lets you avoid any surprises when Terraform manipulates infrastructure. Resource Graph: Terraform builds a graph of all your resources, and parallelizes the creation and modification of any non-dependent resources. Because of this, Terraform builds infrastructure as efficiently as possible, and operators get insight into dependencies in their infrastructure. Change Automation: Complex changesets can be applied to your infrastructure with minimal human interaction. With the previously mentioned execution plan and resource graph, you know exactly what Terraform will change and in what order, avoiding many possible human errors. For more information, see the introduction section of the Terraform website.
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