Getting started
2 minute read
Easily integrate CloudBolt OneFuse with HashiCorp Terraform (compatible with Terraform Open Source, Enterprise, or Cloud) to quickly automate and integrate into your business provisioning lifecycle.
The CloudBolt OneFuse integration platform offers integrations to services like Naming, IPAM, DNS, Microsoft Active Directory, Scripting, Ansible Tower and more.
Upstream providers like Terraform, VMware vRealize Automation, CloudBolt CMP, Ansible, ServiceNow and others are able to consume the same OneFuse integrations combined with organizational business logic for a standardized approach to automation across the enterprise.
Prerequisites
- Learn about HashiCorp Terraform.
- Download and install HashiCorp Terraform.
- Supported Terraform versions: OneFuse Terraform Provider product support lifecycle
- Get the OneFuse Provider via the Terraform Registry.
- HashiCorp Terraform: Using Providers
- Configure the OneFuse Provider
Configure the OneFuse Provider
Configure the connection to OneFuse with a Terraform Provider for OneFuse.
- A Terraform Provider is responsible for understanding API interactions and exposing resources.
Have the following in the main.tf file. Update the values as needed.
// Define the OneFuse Terraform Provider source
terraform {
required_providers {
onefuse = {
source = "CloudBoltSoftware/onefuse"
version = ">= 1.40.0"
}
}
required_version = ">= 0.13"
}
// Inititalize OneFuse Provider
provider "onefuse" {
scheme = var.onefuse_scheme
address = var.onefuse_address
port = var.onefuse_port
user = var.onefuse_user
password = var.onefuse_password
verify_ssl = var.onefuse_verify_ssl
}
By pointing to the source CloudBoltSoftware/onefuse, Terraform will automatically download the OneFuse Terraform Provider based on the required_version specified.
| Variable Name | Variable Value |
|---|---|
onefuse_scheme |
http or https |
onefuse_address |
FQDN of the OneFuse Instance |
onefuse_port |
OneFuse Port Address, for example 443 |
onefuse_user |
OneFuse username with at minimum the Workspace Member role, for example admin |
onefuse_password |
Password for OneFuse user |
onefuse_verify_ssl |
true or false |
Resources
- Visit our GitHub Repos: terraform-provider-onefuse and onefuse-examples
Troubleshooting
Refer to Terraform’s Troubleshooting and Debugging guides.
Next steps
Start integrating with OneFuse Modules.