Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ locals {
additional_signer_private_key_secret_names = ["projects/${include.root.locals.project_id}/secrets/${local.base_name}-ed25519-private-key/versions/1"]
gcs_use_grpc = true
garbage_collection_interval = "10s"
extra_tesseract_flags = []
}

include "root" {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ locals {
additional_signer_private_key_secret_names = ["projects/${include.root.locals.project_id}/secrets/${local.base_name}-ed25519-private-key/versions/1"]
gcs_use_grpc = true
garbage_collection_interval = "10s"
extra_tesseract_flags = []
}

include "root" {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ locals {
additional_signer_private_key_secret_names = ["projects/${include.root.locals.project_id}/secrets/${local.base_name}-ed25519-private-key/versions/1"]
gcs_use_grpc = true
garbage_collection_interval = "10s"
extra_tesseract_flags = []
}

include "root" {
Expand Down
6 changes: 3 additions & 3 deletions deployment/modules/gcp/gce/tesseract/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ locals {
])

# tesseract_args are provided to the tesseract command.
tesseract_args = [
tesseract_args = concat([
"-logtostderr",
"-v=0",
"-slog_level=-4",
Expand Down Expand Up @@ -68,8 +68,8 @@ locals {
var.witness_policy == "" ? "" : "-witness_policy_file=${local.witness_policy_file}",
length(var.additional_signer_private_key_secret_names) == 0 ? "" : join(" ", formatlist("-additional_signer_private_key_secret_name=%s", var.additional_signer_private_key_secret_names)),
"-gcs_use_grpc=${var.gcs_use_grpc}",
var.garbage_collection_interval == null ? "" : "-garbage_collection_interval=${var.garbage_collection_interval}"
]
var.garbage_collection_interval == null ? "" : "-garbage_collection_interval=${var.garbage_collection_interval}",
], var.extra_tesseract_flags)

container_name = "tesseract-${var.base_name}"
cached_docker_image = "${google_artifact_registry_repository.tesseract.registry_uri}/${var.server_docker_image}"
Expand Down
6 changes: 6 additions & 0 deletions deployment/modules/gcp/gce/tesseract/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -170,3 +170,9 @@ variable "garbage_collection_interval" {
default = null
}

variable "extra_tesseract_flags" {
description = "A list of strings representing any additional arguments to append to the Tesseract command line. Example: [\"-flag1=value1\", \"-flag2=value2\"]. NOTE: This is intended as a temporary solution; other flags should be defined using their own dedicated variables and not added this way."
type = list(string)
default = []
}

1 change: 1 addition & 0 deletions deployment/modules/gcp/tesseract/gce/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ module "gce" {
roots_reject_fingerprints = var.roots_reject_fingerprints
gcs_use_grpc = var.gcs_use_grpc
garbage_collection_interval = var.garbage_collection_interval
extra_tesseract_flags = var.extra_tesseract_flags

depends_on = [
module.storage
Expand Down
6 changes: 6 additions & 0 deletions deployment/modules/gcp/tesseract/gce/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -180,3 +180,9 @@ variable "garbage_collection_interval" {
default = null
}

variable "extra_tesseract_flags" {
description = "A list of strings representing any additional arguments to append to the Tesseract command line. Example: [\"-flag1=value1\", \"-flag2=value2\"]. NOTE: This is intended as a temporary solution; other flags should be defined using their own dedicated variables and not added this way."
type = list(string)
default = []
}

Loading