mirror of
https://github.com/outbackdingo/firezone.git
synced 2026-01-27 10:18:54 +00:00
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:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user