Skip to content

Instantly share code, notes, and snippets.

@mcascone
Created May 20, 2019 15:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mcascone/58c1c9fe909bf4307d5fd6730a15cdfc to your computer and use it in GitHub Desktop.
Save mcascone/58c1c9fe909bf4307d5fd6730a15cdfc to your computer and use it in GitHub Desktop.
Terraform and vRa7 Example
# These are set via $env:TF_VAR_x = $env:<var_x>
variable "VRA_USER" {}
variable "VRA_PASS" {}
provider "vra7" {
username = "${var.VRA_USER}"
password = "${var.VRA_PASS}"
tenant = "<tenant_name>"
host = "<https://your.vra.host>"
# insecure = true
}
resource "vra7_deployment" "terraform-1" {
count = 1
description = "deployment via terraform"
reasons = "because it's awesome"
catalog_item_name = "<catalog_item_friendly_name>"
wait_timeout = "1800"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment