Skip to content

Commit

Permalink
feat: INFRA-764 Added vault agent to zeppelin
Browse files Browse the repository at this point in the history
  • Loading branch information
Issam committed Nov 27, 2024
1 parent e095263 commit c3b6312
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 5 deletions.
9 changes: 8 additions & 1 deletion main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,13 @@ module "vault_agent_configs" {
install_dependencies = var.vault_agent.install_dependencies
vault_agent = {
enabled = var.vault_agent.enabled
auth_method = var.vault_agent.auth_method
auth_method = {
type = var.vault_agent.auth_method.type
config = {
role_id = var.vault_agent.auth_method.config.role_id
secret_id = var.vault_agent.auth_method.config.secret_id
}
}
vault_address = var.vault_agent.vault_address
vault_ca_cert = var.vault_agent.vault_ca_cert
templates = var.vault_agent.templates
Expand All @@ -98,6 +104,7 @@ module "vault_agent_configs" {
}
}


data "template_cloudinit_config" "zeppelin" {
gzip = true
base64_encode = true
Expand Down
14 changes: 10 additions & 4 deletions variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -271,10 +271,13 @@ variable "vault_agent" {
install_dependencies = bool
auth_method = object({
type = string
config = map(string)
config = object({
role_id = string # Content of the role ID file
secret_id = string # Content of the secret ID file
})
})
vault_address = string
vault_ca_cert = string
vault_ca_cert = string # Content of the CA certificate file
templates = list(object({
source_path = string
destination_path = string
Expand All @@ -290,12 +293,15 @@ variable "vault_agent" {
install_dependencies = true
auth_method = {
type = "approle"
config = {}
config = {
role_id = ""
secret_id = ""
}
}
vault_address = ""
vault_ca_cert = ""
templates = []
agent_config = ""
release_version = ""
}
}
}

0 comments on commit c3b6312

Please sign in to comment.