forked from hashicorp/terraform-azurerm-terraform-enterprise
-
Notifications
You must be signed in to change notification settings - Fork 0
/
outputs.tf
123 lines (104 loc) · 3.58 KB
/
outputs.tf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
# Application
# -----------
output "tfe_application_url" {
value = "https://${module.load_balancer.fqdn}"
description = "Terraform Enterprise Application URL"
}
output "login_url" {
value = "https://${module.load_balancer.fqdn}/admin/account/new?token=${module.settings.tfe_configuration.user_token.value}"
description = "Login URL to setup the TFE instance once it is initialized"
}
output "tfe_console_url" {
value = "https://${module.load_balancer.fqdn}:8800"
description = "Terraform Enterprise Console URL"
}
# General
# -------
output "resource_group_name" {
value = module.resource_groups.resource_group_name
description = "The name of the resource group into which to provision all resources"
}
# Network
# -------
output "network" {
value = local.network
description = "The virtual network used for all resources"
}
output "fqdn" {
value = module.load_balancer.fqdn
description = "The FQDN of the TFE instance(s)."
}
# Service Accounts
# ----------------
output "storage_account_name" {
value = local.object_storage.storage_account_name
description = "The name of the storage account used by TFE"
}
# Object Storage
# --------------
output "storage_account_container_name" {
value = local.object_storage.storage_account_container_name
description = "The name of the container used by TFE"
}
# Database
# --------
output "database" {
value = local.database
description = "The TFE PostgreSQL database."
}
# SSH
# ---
output "instance_private_key" {
value = var.vm_public_key == null ? tls_private_key.tfe_ssh[0].private_key_pem : "An existing 'vm_public_key' was provided"
description = "The SSH private key to the TFE instance(s)"
}
# Bastion
# -------
output "bastion_host_id" {
value = var.create_bastion == true ? module.bastion.*.bastion_host_id : []
description = "The resource ID of the Azure bastion host"
}
output "bastion_host_dns_name" {
value = var.create_bastion == true ? module.bastion.*.bastion_host_dns_name : []
description = "The DNS name of the bastion host vm"
}
# User_data
# ---------
output "tfe_userdata_base64_encoded" {
value = module.tfe_init.tfe_userdata_base64_encoded
description = "The Base64 encoded User Data script built from terraform-random-tfe-utility/modules/tfe_init/templates/tfe.sh.tpl"
}
output "tfe_console_password" {
value = module.settings.replicated_configuration.DaemonAuthenticationPassword
description = "The password for the TFE console"
}
# Redis
# -----
output "redis_hostname" {
value = local.active_active == true ? module.redis[0].redis_cache.hostname : null
description = "The Hostname of the Redis Instance"
}
output "redis_ssl_port" {
value = local.active_active == true ? module.redis[0].redis_cache.ssl_port : null
description = "The SSL Port of the Redis Instance"
}
output "redis_pass" {
value = local.active_active == true ? module.redis[0].redis_cache.primary_access_key : null
description = "The Primary Access Key for the Redis Instance"
}
# Load balancer
# -------------
output "load_balancer_backend_id" {
value = module.load_balancer.load_balancer_backend_id
description = "The backend address pool ID"
}
output "load_balancer_ip" {
value = var.dns_create_record == false ? "External DNS record must be configured for: ${module.load_balancer.load_balancer_ip}" : module.load_balancer.load_balancer_ip
description = "The IP address of the load balancer"
}
# VM
# --
output "instance_user_name" {
value = var.vm_user
description = "The admin user on the TFE instance(s)"
}