typhoon/digital-ocean/container-linux/kubernetes/outputs.tf
Dalton Hubble 1366ae404b Migrate DigitalOcean module from Terraform v0.11 to v0.12
* Replace v0.11 bracket type hints with Terraform v0.12 list expressions
* Use expression syntax instead of interpolated strings, where suggested
* Update DigitalOcean tutorial documentation
* Define Terraform and plugin version requirements in versions.tf
  * Require digitalocean ~> v1.3 to support Terraform v0.12
  * Require ct ~> v0.3.2 to support Terraform v0.12
2019-06-06 09:44:58 -07:00

42 lines
918 B
HCL

output "kubeconfig-admin" {
value = module.bootkube.kubeconfig-admin
}
output "controllers_dns" {
value = digitalocean_record.controllers[0].fqdn
}
output "workers_dns" {
# Multiple A and AAAA records with the same FQDN
value = digitalocean_record.workers-record-a[0].fqdn
}
output "controllers_ipv4" {
value = [digitalocean_droplet.controllers.*.ipv4_address]
}
output "controllers_ipv6" {
value = [digitalocean_droplet.controllers.*.ipv6_address]
}
output "workers_ipv4" {
value = [digitalocean_droplet.workers.*.ipv4_address]
}
output "workers_ipv6" {
value = [digitalocean_droplet.workers.*.ipv6_address]
}
# Outputs for custom firewalls
output "controller_tag" {
description = "Tag applied to controller droplets"
value = digitalocean_tag.controllers.name
}
output "worker_tag" {
description = "Tag applied to worker droplets"
value = digitalocean_tag.workers.name
}