Skip to content

Commit

Permalink
better sensitive value management
Browse files Browse the repository at this point in the history
  • Loading branch information
remche committed May 11, 2021
1 parent d0b8009 commit 87693d5
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 6 deletions.
2 changes: 1 addition & 1 deletion modules/node/output.tf
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@ output "nodes" {
instance.name =>
{"id" = instance.id,
"internal_ip" = instance.access_ip_v4,
"floating_ip" = var.assign_floating_ip ? openstack_networking_floatingip_v2.floating_ip[index(openstack_compute_instance_v2.instance, instance)].address : ""} }
"floating_ip" = var.assign_floating_ip ? nonsensitive(openstack_networking_floatingip_v2.floating_ip[index(openstack_compute_instance_v2.instance, instance)].address) : ""} }
}
1 change: 1 addition & 0 deletions modules/rke/output.tf
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,5 @@ locals {
output "rke_cluster" {
value = local.rke_cluster
description = "RKE cluster spec"
sensitive = true
}
5 changes: 0 additions & 5 deletions output.tf
Original file line number Diff line number Diff line change
Expand Up @@ -7,19 +7,16 @@ output "keypair_name" {
output "master_nodes" {
value = module.master.nodes
description = "The master nodes"
sensitive = "true"
}

output "edge_nodes" {
value = module.edge.nodes
description = "The edge nodes"
sensitive = "true"
}

output "worker_nodes" {
value = module.worker.nodes
description = "The worker nodes"
sensitive = "true"
}

output "rke_cluster" {
Expand All @@ -31,11 +28,9 @@ output "rke_cluster" {
output "nodes_subnet" {
value = module.network.nodes_subnet
description = "The nodes subnet"
sensitive = "true"
}

output "loadbalancer_floating_ip" {
value = var.enable_loadbalancer ? module.loadbalancer[0].floating_ip : ""
description = "The floating ip of the loadbalancer"
sensitive = "true"
}

0 comments on commit 87693d5

Please sign in to comment.