Skip to content
This repository has been archived by the owner on Sep 16, 2020. It is now read-only.

Commit

Permalink
Add sensitive to passwords and keys in outputs.
Browse files Browse the repository at this point in the history
[#152856606]
  • Loading branch information
Genevieve LEsperance committed Nov 14, 2017
1 parent ac89308 commit 54b3af1
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 6 deletions.
6 changes: 4 additions & 2 deletions external_database/outputs.tf
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,17 @@ output "opsman_sql_username" {
}

output "opsman_sql_password" {
value = "${random_id.opsman_db_password.b64}"
sensitive = true
value = "${random_id.opsman_db_password.b64}"
}

output "pas_sql_username" {
value = "${random_id.pas_db_username.b64}"
}

output "pas_sql_password" {
value = "${random_id.pas_db_password.b64}"
sensitive = true
value = "${random_id.pas_db_password.b64}"
}

output "ip" {
Expand Down
12 changes: 8 additions & 4 deletions outputs.tf
Original file line number Diff line number Diff line change
Expand Up @@ -143,23 +143,27 @@ output "pas_sql_username" {
}

output "pas_sql_password" {
value = "${module.external_database.pas_sql_password}"
sensitive = true
value = "${module.external_database.pas_sql_password}"
}

output "opsman_sql_username" {
value = "${module.external_database.opsman_sql_username}"
}

output "opsman_sql_password" {
value = "${module.external_database.opsman_sql_password}"
sensitive = true
value = "${module.external_database.opsman_sql_password}"
}

output "ops_manager_ssh_private_key" {
value = "${tls_private_key.ops-manager.private_key_pem}"
sensitive = true
value = "${tls_private_key.ops-manager.private_key_pem}"
}

output "ops_manager_ssh_public_key" {
value = "${format("ubuntu:%s", tls_private_key.ops-manager.public_key_openssh)}"
sensitive = true
value = "${format("ubuntu:%s", tls_private_key.ops-manager.public_key_openssh)}"
}

output "cf_ws_address" {
Expand Down

0 comments on commit 54b3af1

Please sign in to comment.