Skip to content

Commit

Permalink
updating examples for DB
Browse files Browse the repository at this point in the history
  • Loading branch information
devops-rob committed Nov 26, 2020
1 parent ac74feb commit fd52c3a
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 5 deletions.
7 changes: 5 additions & 2 deletions examples/db_cassandra/main.tf
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
provider "vault" {
address = "http://localhost:8200"
address = var.vault_addr
token = var.vault_token
}

Expand All @@ -8,6 +8,9 @@ variable "cassandra_path" {
}

variable "vault_token" {}
variable "vault_addr" {
default = "http://localhost:8200"
}
variable "cassandra_username" {}
variable "cassandra_password" {}

Expand All @@ -20,7 +23,7 @@ module "cassandra_static" {
]

vault_token = var.vault_token
vault_addr = "http://localhost:8200"
vault_addr = var.vault_addr

cassandra_path = var.cassandra_path

Expand Down
9 changes: 8 additions & 1 deletion examples/db_mongodb/main.tf
Original file line number Diff line number Diff line change
@@ -1,12 +1,16 @@
provider "vault" {
address = "http://localhost:8200"
address = var.vault_addr
token = var.vault_token
}

variable "mongodb_path" {
default = "mongodb"
}

variable "vault_addr" {
default = "http://localhost:8200"
}

variable "vault_token" {}
variable "mongodb_user" {}
variable "mongodb_password" {}
Expand All @@ -19,6 +23,9 @@ module "mongodb_static" {
"mongodb"
]

vault_token = var.vault_token
vault_addr = var.vault_addr

mongodb_path = var.mongodb_path

mongodb_allowed_roles = ["*"]
Expand Down
9 changes: 8 additions & 1 deletion examples/db_mysql/main.tf
Original file line number Diff line number Diff line change
@@ -1,12 +1,16 @@
provider "vault" {
address = "http://localhost:8200"
address = var.vault_addr
token = var.vault_token
}

variable "mysql_path" {
default = "mysql"
}

variable "vault_addr" {
default = "http://localhost:8200"
}

variable "vault_token" {}
variable "mysql_user" {}
variable "mysql_password" {}
Expand All @@ -19,6 +23,9 @@ module "mysql_static" {
"mysql"
]

vault_token = var.vault_token
vault_addr = var.vault_addr

mysql_path = var.mysql_path

mysql_allowed_roles = ["*"]
Expand Down
9 changes: 8 additions & 1 deletion examples/db_postgresql/main.tf
Original file line number Diff line number Diff line change
@@ -1,12 +1,16 @@
provider "vault" {
address = "http://localhost:8200"
address = var.vault_addr
token = var.vault_token
}

variable "postgresql_path" {
default = "postgresql"
}

variable "vault_addr" {
default = "http://localhost:8200"
}

variable "vault_token" {}
variable "postgresql_username" {}
variable "postgresql_password" {}
Expand All @@ -19,6 +23,9 @@ module "postgresql_static" {
"postgresql"
]

vault_token = var.vault_token
vault_addr = var.vault_addr

postgresql_path = var.postgresql_path

postgresql_allowed_roles = ["*"]
Expand Down

0 comments on commit fd52c3a

Please sign in to comment.