By Yaron Tal
Quick quiz.
resource "azurerm_resource_group" "myterraformgroup" {
name = "myResourceGroup"
location = "westeurope"
tags = {
environment = "Terraform Demo"
}
}
Username: tfuser[id]
Password: tfpass[id]
Web-cli: [ip]:3000/wetty
SSH: ssh tfuser[id]@[ip]
variable aws-location {
default = "eu-west-1"
}
output "workers.private_ips" {
description = "private IP addresses of all regular worker nodes"
value = [
"${concat(vcd_vm.green.*.network_config.0.ip_address, vcd_vm.blue.*.network_config.0.ip_address)}"
]
}
module "harbor-lb" {
source = "git::ssh://git@appfactory.git:7999/terraform-vcd-lb.git"
prefix = "${format("%.4s", var.customer-prefix)}"
lb-name = "harbor"
dns-name = "harbor"
external-ip = "123.45.67.89"
internal-port-0 = 9034
external-port-0 = 80
pool-names = ["${module.vcd.compute.stripped_hostnames}"]
pool-ips = ["${module.vcd.compute.private_ips}"]
lb-monitor-id = "${module.vcd.vcd-lb-http-monitor.id}"
app-profile-id = "${module.vcd.vcd-lb-app-profile.id}"
transparent = true
nsx-ip = "172.16.14.1"
}