Terraform VergeIO Provider
Learn how to use the VergeIO Terraform Provider to manage VergeOS resources programmatically.
The Terraform VergeIO Provider enables the integration and automation of VergeOS infrastructure with Terraform. It allows users to define, manage, and scale VergeOS resources as part of Infrastructure as Code (IaC) workflows.
For the latest provider documentation and examples, please refer to the following:
GitHub Repository for the VergeIO Terraform Provider.
Terraform Registry Documentation for official usage and updates.
Example Usage
For more detailed usage examples, check the docs folder in the GitHub repository.
Example Configuration
provider "vergeio" {
host = "https://some_url_or_ip"
username = "my_user"
password = "my_password"
insecure = false # Use true if using self-signed SSL certificates
}
resource "vergeio_vm" "new_vm" {
name = "NEW VM"
description = "NEW TF VM"
enabled = true
os_family = "linux"
cpu_cores = 4
machine_type = "q35"
ram = 8192
}Initializing and Applying
To apply the configuration:
Configuration Reference
Resources
The following VergeOS resources can be managed via Terraform:
Data Sources
The following data sources are available for querying VergeOS resources:
Testing a Sample Configuration
To test your configuration, create a main.tf file in your Terraform workspace:
Then, run the following command:
Last updated
Was this helpful?