Skip to content

Instantly share code, notes, and snippets.

View dataclouder's full-sized avatar

Giuseppe Maxia dataclouder

  • VMware, Inc
  • Valencia, Spain
View GitHub Profile
@dataclouder
dataclouder / roles-provider.tf
Created July 2, 2021 03:15
Release 3.3 sample: roles management
provider "vcd" {
user = var.adminUser
password = var.adminPassword
auth_type = "integrated"
url = var.url
sysorg = var.sysOrg
org = var.org
allow_unverified_ssl = "true"
max_retry_timeout = 600
logging = true
@dataclouder
dataclouder / release-3.2-sample.tf
Last active March 10, 2021 16:06
Release 3.2 sample
# Note: all resources are created inside a NSX-T VDC
data "vcd_nsxt_edgegateway" "existing" {
org = "datacloud"
vdc = "nsxt-vdc-datacloud"
name = "nsxt-gw-datacloud"
}
resource "vcd_network_routed_v2" "net_r_v2" {
name = "net_r_v2"
@dataclouder
dataclouder / config.tf
Last active June 12, 2019 20:01
sample terraform config
provider "vcd" {
user = "${var.user}"
password = "${var.password}"
url = "https://${var.vcd_address}/api"
sysorg = "${var.sysorg}"
org = "${var.org_name}"
allow_unverified_ssl = "true"
version = "~> 2.4"
}
@dataclouder
dataclouder / execution-output.txt
Created May 2, 2019 07:33
debug incorrect vdc name
$ terraform apply -auto-approve
vcd_network_routed.net-govcd: Refreshing state... (ID: net-govcd)
vcd_catalog.cat-govcd: Refreshing state... (ID: cat-govcd)
vcd_catalog_item.photon-hw11: Refreshing state... (ID: cat-govcd:photon-hw11)
vcd_network_routed.net-govcd: Destroying... (ID: net-govcd)
vcd_network_routed.second-net-govcd: Creating...
dns1: "" => "8.8.8.8"
dns2: "" => "8.8.4.4"
edge_gateway: "" => "egw-govcd"
gateway: "" => "192.168.2.1"
@dataclouder
dataclouder / crash.log
Created May 2, 2019 07:31
incorrect-vdc-name
2019/05/02 09:20:34 [INFO] Terraform version: 0.11.13
2019/05/02 09:20:34 [INFO] Go runtime version: go1.12
2019/05/02 09:20:34 [INFO] CLI args: []string{"/usr/local/Cellar/terraform/0.11.13/bin/terraform", "apply", "-auto-approve"}
2019/05/02 09:20:34 [DEBUG] Attempting to open CLI config file: $HOME/.terraformrc
2019/05/02 09:20:34 [DEBUG] File doesn't exist, but doesn't need to. Ignoring.
2019/05/02 09:20:34 [INFO] CLI command args: []string{"apply", "-auto-approve"}
2019/05/02 09:20:34 [INFO] command: empty terraform config, returning nil
2019/05/02 09:20:34 [DEBUG] command: no data state file found for backend config
2019/05/02 09:20:34 [DEBUG] New state was assigned lineage "eb8d472e-45cb-5624-54d6-97c03abfb585"
2019/05/02 09:20:34 [INFO] command: backend initialized: <nil>