forked from crosscloudci/cross-cloud
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathoutput.tf
14 lines (14 loc) · 1.04 KB
/
output.tf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
output "endpoint" { value = "endpoint.${ var.name }.${ var.domain }" }
# output "bastion_ip" { value = "${ module.bastion.bastion_ip}" }
# output "bastion_fqdn" { value = "${ module.bastion.bastion_fqdn}" }
# output "k8s_admin" { value = "${ k8s_admin}"}
# # fixme for use outside container
output "ssh_key_setup" { value = "eval $(ssh-agent) ; ssh-add ${ var.data_dir }/.ssh/id_rsa"}
output "ssh_first_master" { value = "ssh -At core@master1.${ var.name }.${ var.domain }" }
output "ssh_second_master" { value = "ssh -At core@master2.${ var.name }.${ var.domain }" }
output "ssh_third_master" { value = "ssh -At core@master3.${ var.name }.${ var.domain }" }
output "ssh_first_worker" { value = "ssh -At core@worker1.${ var.name }.${ var.domain }" }
output "ssh_second_worker" { value = "ssh -At core@worker2.${ var.name }.${ var.domain }" }
output "ssh_third_worker" { value = "ssh -At core@worker3.${ var.name }.${ var.domain }" }
# " ssh ${ var.admin_username }@etcd1.${ var.name }.${ var.domain }"}
output "kubeconfig" { value = "${ module.kubeconfig.kubeconfig }"}