Add RUST_LOG to cloud_init.yaml for google-cloud gateway RIG (#6736)

Signed-off-by: James Winegar <jameswinegar@users.noreply.github.com>
This commit is contained in:
James Winegar
2024-09-17 16:02:34 -05:00
committed by GitHub
parent 7c55859a98
commit 733ada2a26
2 changed files with 4 additions and 2 deletions

View File

@@ -108,8 +108,9 @@ resource "google_compute_instance_template" "application" {
metadata = {
user-data = templatefile("${path.module}/templates/cloud-init.yaml", {
project_id = var.project_id
otlp_grpc_endpoint = "127.0.0.1:4317"
project_id = var.project_id
otlp_grpc_endpoint = "127.0.0.1:4317"
observability_log_level = var.observability_log_level
firezone_token = var.token
firezone_api_url = var.api_url

View File

@@ -49,6 +49,7 @@ runcmd:
export FIREZONE_LOG_FORMAT="google-cloud"
export FIREZONE_GOOGLE_CLOUD_PROJECT_ID="${project_id}"
export FIREZONE_OTLP_GRPC_ENDPOINT="${otlp_grpc_endpoint}"
export RUST_LOG="${observability_log_level}"
curl -fsSL https://raw.githubusercontent.com/firezone/firezone/main/scripts/gateway-systemd-install.sh -o /tmp/gateway-install.sh
bash /tmp/gateway-install.sh
rm /tmp/gateway-install.sh