Skip to content

Commit

Permalink
re-add terraform file so registry picks up dir (#7)
Browse files Browse the repository at this point in the history
Signed-off-by: Erin Atkinson <[email protected]>
  • Loading branch information
erindatkinson authored Sep 4, 2019
1 parent 6ac79af commit 267c980
Showing 1 changed file with 41 additions and 0 deletions.
41 changes: 41 additions & 0 deletions examples/basic/main.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
locals {
license_file = "/path/to/licence/file.rli"
cert_file = "/path/to/domain/certificate.pfx"
domain = "dns.domain.example.com"
}

variable "cert_pw" {
type = "string"
description = "The Password for the PFX Certificate."
}

provider "azurerm" {
version = "~>1.32.1"
}

module "tfe_cluster" {
source = "hashicorp/tfe-ha/azure"
version = "0.0.2-beta"

license_file = "${local.license_file}"
resource_group_name = "existing-rg-name"
virtual_network_name = "existing-vnet-name"
subnet = "existing-subnet-within-vnet-name"
key_vault_name = "existing-key-vault-in-rg-name"
domain = "${local.domain}"
tls_pfx_certificate = "${local.cert_file}"
tls_pfx_certificate_password = "${var.cert_pw}"
}

output "tfe_cluster" {
value = {
application_endpoint = "${module.tfe_cluster.application_endpoint}"
application_health_check = "${module.tfe_cluster.health_check_endpoint}"
install_id = "${module.tfe_cluster.install_id}"
installer_dashboard_endpoint = "${module.tfe_cluster.console_endpoint}"
installer_dashboard_password = "${module.tfe_cluster.admin_console_password}"
primary_public_ip = "${module.tfe_cluster.primary_public_ip}"
ssh_config_file = "${module.tfe_cluster.ssh_config_file}"
ssh_private_key = "${module.tfe_cluster.ssh_private_key}"
}
}

0 comments on commit 267c980

Please sign in to comment.