Skip to content

Commit 58e985e

Browse files
authored
Merge pull request #18 from InputObject2/feature/add-outputs
feat(module): Added terraform outputs
2 parents 57fe882 + 3464b21 commit 58e985e

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

outputs.tf

+27
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
output "kubeconfig" {
2+
value = sshcommand_command.get_kubeconfig.result
3+
}
4+
5+
output "master_ips" {
6+
value = concat([xenorchestra_vm.master.ipv4_addresses[0]], xenorchestra_vm.secondary[*].ipv4_addresses[0])
7+
}
8+
9+
output "node_ips" {
10+
value = xenorchestra_vm.node[*].ipv4_addresses[0]
11+
}
12+
13+
output "master_hostnames" {
14+
value = concat([xenorchestra_vm.master.name_description], xenorchestra_vm.secondary[*].name_description)
15+
}
16+
17+
output "node_hostnames" {
18+
value = xenorchestra_vm.node[*].name_description
19+
}
20+
21+
output "primary_master_ip" {
22+
value = xenorchestra_vm.master.ipv4_addresses[0]
23+
}
24+
25+
output "primary_master_hostname" {
26+
value = xenorchestra_vm.master.name_description
27+
}

0 commit comments

Comments
 (0)