mirror of
https://github.com/puppetmaster/typhoon.git
synced 2024-12-25 17:39:33 +01:00
c0347ca0c6
* Mark `kubeconfig` and `asset_dist` as `sensitive` to prevent the Terraform CLI displaying these values, esp. for CI systems * In particular, external tools or tfvars style uses (not recommended) reportedly display all outputs and are improved by setting sensitive * For Terraform v0.14, outputs referencing sensitive fields must also be annotated as sensitive Closes https://github.com/poseidon/typhoon/issues/884
66 lines
1.3 KiB
HCL
66 lines
1.3 KiB
HCL
output "kubeconfig-admin" {
|
|
value = module.bootstrap.kubeconfig-admin
|
|
sensitive = true
|
|
}
|
|
|
|
# Outputs for Kubernetes Ingress
|
|
|
|
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 worker pools
|
|
|
|
output "kubeconfig" {
|
|
value = module.bootstrap.kubeconfig-kubelet
|
|
sensitive = true
|
|
}
|
|
|
|
# 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
|
|
}
|
|
|
|
# Outputs for custom load balancing
|
|
|
|
output "vpc_id" {
|
|
description = "ID of the cluster VPC"
|
|
value = digitalocean_vpc.network.id
|
|
}
|
|
|
|
# Outputs for debug
|
|
|
|
output "assets_dist" {
|
|
value = module.bootstrap.assets_dist
|
|
sensitive = true
|
|
}
|
|
|