-
Notifications
You must be signed in to change notification settings - Fork 8
/
outputs.tf
95 lines (88 loc) · 4.04 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
#MIT License
#Copyright (c) 2022 Qumulo, Inc.
#Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the Software), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
# copies of the Software, and to permit persons to whom the Software is
# furnished to do so, subject to the following conditions:
#The above copyright notice and this permission notice shall be included in all
#copies or substantial portions of the Software.
#THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
#IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
#FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
#AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
#LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
#OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
#SOFTWARE.
output "deployment_unique_name" {
description = "The unique name for this deployment."
value = local.deployment_unique_name
}
output "qumulo_cluster_provisioned" {
description = "If the qprovisioner module completed secondary provisioning of the cluster = Success/Failure"
value = module.qconfig.mod_overness ? "${module.qprovisioner.status} ******REQUIRED: manually increase protection for 2 node failure******" : module.qprovisioner.status
}
output "qumulo_floating_ips" {
description = "Qumulo floating IPs for IP failover & load distribution. If using an alternate source for DNS, use these IPs for the A-records."
value = module.qcluster.floating_ips
}
output "qumulo_knowledge_base" {
description = "Qumulo knowledge base"
value = "https://care.qumulo.com/hc/en-us/categories/115000637447-KNOWLEDGE-BASE"
}
/*
output "qumulo_primary_ips" {
description = "Qumulo primary IPs."
value = module.qcluster.primary_ips
}
*/
output "qumulo_private_NFS" {
description = "Private NFS path for the Qumulo cluster"
value = var.q_route53_provision && !module.qconfig.multi_az && !var.q_nlb_provision ? module.route53-phz[0].nfs : (module.qconfig.multi_az || var.q_nlb_provision ? module.nlb-qumulo[0].nlb_nfs : "<custom.dns>:/<NFS Export Name>")
}
output "qumulo_private_SMB" {
description = "Private SMB UNC path for the Qumulo cluster"
value = var.q_route53_provision && !module.qconfig.multi_az && !var.q_nlb_provision ? module.route53-phz[0].smb : (module.qconfig.multi_az || var.q_nlb_provision ? module.nlb-qumulo[0].nlb_smb : "\\<custom.dns>\\<SMB Share Name>")
}
output "qumulo_private_url" {
description = "Private URL for the Qumulo cluster"
value = var.q_route53_provision && !module.qconfig.multi_az && !var.q_nlb_provision ? module.route53-phz[0].url : (module.qconfig.multi_az || var.q_nlb_provision ? module.nlb-qumulo[0].nlb_url : "https://<custom.dns>")
}
output "qumulo_private_url_node1" {
description = "Link to private IP for Qumulo Cluster - Node 1"
value = module.qcluster.url
}
output "qumulo_public_url" {
description = "Link to public IP for Qumulo Cluster"
value = var.q_public_mgmt_provision ? module.nlb-management[0].url : null
}
output "qumulo_nlb_dns" {
description = "The DNS name of the NLB, if provisioned"
value = var.q_nlb_provision ? module.nlb-qumulo[0].nlb_dns : null
}
#Uncomment any of the submodule outputs below to get all outputs for a given submodule
#None of these outputs should be necessary for production environments
/*
output "outputs_secret_module" {
value = module.secrets
}
output "outputs_qconfig_module" {
value = module.qconfig
}
output "outputs_qami-id-lookup_module" {
value = module.qami-id-lookup
}
output "outputs_qcluster_module" {
value = module.qcluster
}
output "outputs_route53-phz_module" {
value = module.route53-phz
}
output "outputs_cloudwatch_module" {
value = module.cloudwatch
}
output "outputs_nlb_qumulo_module" {
value = module.nlb-qumulo
}
*/