2018-12-15 21:48:08 -08:00
|
|
|
output "kubeconfig-admin" {
|
2019-05-27 15:37:36 -07:00
|
|
|
value = module.bootkube.kubeconfig-admin
|
2018-12-15 21:48:08 -08:00
|
|
|
}
|
|
|
|
|
2017-07-29 11:35:53 -07:00
|
|
|
output "controllers_dns" {
|
2019-05-27 15:37:36 -07:00
|
|
|
value = digitalocean_record.controllers[0].fqdn
|
2017-07-29 11:35:53 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
output "workers_dns" {
|
2018-10-27 23:01:50 -07:00
|
|
|
# Multiple A and AAAA records with the same FQDN
|
2019-05-27 15:37:36 -07:00
|
|
|
value = digitalocean_record.workers-record-a[0].fqdn
|
2017-07-29 11:35:53 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
output "controllers_ipv4" {
|
2019-05-27 15:37:36 -07:00
|
|
|
value = [digitalocean_droplet.controllers.*.ipv4_address]
|
2017-07-29 11:35:53 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
output "controllers_ipv6" {
|
2019-05-27 15:37:36 -07:00
|
|
|
value = [digitalocean_droplet.controllers.*.ipv6_address]
|
2017-07-29 11:35:53 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
output "workers_ipv4" {
|
2019-05-27 15:37:36 -07:00
|
|
|
value = [digitalocean_droplet.workers.*.ipv4_address]
|
2017-07-29 11:35:53 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
output "workers_ipv6" {
|
2019-05-27 15:37:36 -07:00
|
|
|
value = [digitalocean_droplet.workers.*.ipv6_address]
|
2017-07-29 11:35:53 -07:00
|
|
|
}
|
2019-04-02 23:02:04 -07:00
|
|
|
|
|
|
|
# Outputs for custom firewalls
|
|
|
|
|
|
|
|
output "controller_tag" {
|
|
|
|
description = "Tag applied to controller droplets"
|
2019-05-27 15:37:36 -07:00
|
|
|
value = digitalocean_tag.controllers.name
|
2019-04-02 23:02:04 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
output "worker_tag" {
|
|
|
|
description = "Tag applied to worker droplets"
|
2019-05-27 15:37:36 -07:00
|
|
|
value = digitalocean_tag.workers.name
|
2019-04-02 23:02:04 -07:00
|
|
|
}
|
2019-05-27 15:37:36 -07:00
|
|
|
|