Terraform Provider for OpenNebula
Terraform is used to create, manage, and manipulate infrastructure resources (e.g., physical machines, VMs, network switches, containers, etc.). Almost any infrastructure type can be represented as a resource in Terraform. The OpenNebula provider is officially supported by HashiCorp and is fully open source. The repository is available here.
The OpenNebula provider is used to interact with OpenNebula resources through Terraform. The provider allows you to manage your OpenNebula clusters resources. It needs to be configured with proper credentials before it can be used.
The official provider documentation can be found here.
Usage
In order to use the OpenNebula Terraform provider, Terraform has to be installed first. Once Terraform is installed you can start defining the infrastructure:
# Define a new datablockimage
resource "opennebula_virtual_machine" "myfirstvm-tf" {
...
}
Once terraform init
is executed with OpenNebula resources defined in any *.tf
file, the provider will be automatically retrieved by Terraform.
Building from Source
Another way of using the Terraform provider is building it from source code. A complete guide on how to do this can be found in the provider repository.
We value your feedback
Was this information helpful?
Glad to hear it
Sorry to hear that