Skip to content

Commit

Permalink
deleting white spcaes
Browse files Browse the repository at this point in the history
  • Loading branch information
devops-rob committed Nov 26, 2020
1 parent 649e13d commit ac74feb
Showing 1 changed file with 6 additions and 11 deletions.
17 changes: 6 additions & 11 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,6 @@ resource "vault_database_secret_backend_connection" "cassandra" {
provisioner "local-exec" {
when = destroy
command = "${path.module}/revoke_lease.sh ${self.data.token} ${self.name} ${self.data.addr}"

}

depends_on = [
Expand Down Expand Up @@ -207,15 +206,13 @@ resource "vault_database_secret_backend_connection" "mongodb" {
data = {
username = var.mongodb_username
password = var.mongodb_password
addr = var.vault_addr
token = var.vault_token

addr = var.vault_addr
token = var.vault_token
}

provisioner "local-exec" {
when = destroy
command = "${path.module}/revoke_lease.sh ${self.data.token} ${self.name} ${self.data.addr}"

}

verify_connection = var.mongodb_verify_connection
Expand Down Expand Up @@ -258,7 +255,6 @@ resource "vault_database_secret_backend_connection" "hana" {
provisioner "local-exec" {
when = destroy
command = "${path.module}/revoke_lease.sh ${self.data.token} ${self.name} ${self.data.addr}"

}

verify_connection = var.hana_verify_connection
Expand Down Expand Up @@ -340,8 +336,8 @@ resource "vault_database_secret_backend_connection" "mysql" {
data = {
username = var.mysql_username
password = var.mysql_password
addr = var.vault_addr
token = var.vault_token
addr = var.vault_addr
token = var.vault_token
}

provisioner "local-exec" {
Expand Down Expand Up @@ -386,9 +382,8 @@ resource "vault_database_secret_backend_connection" "postgresql" {
data = {
username = var.postgresql_username
password = var.postgresql_password
addr = var.vault_addr
token = var.vault_token

addr = var.vault_addr
token = var.vault_token
}

provisioner "local-exec" {
Expand Down

0 comments on commit ac74feb

Please sign in to comment.