Stop using process substitution in gateway cloud init file

This commit is contained in:
Andrew Dryga
2024-05-01 20:29:46 -06:00
parent 7695567213
commit a13ce8e4e5
2 changed files with 7 additions and 2 deletions

View File

@@ -9,7 +9,9 @@ locals {
application = "firezone-gateway"
}, var.labels)
network_tags = ["firezone-gateways-${var.name}"]
network_tags = [
"firezone-gateways-${var.name}"
]
google_health_check_ip_ranges = [
"130.211.0.0/22",

View File

@@ -8,6 +8,7 @@ packages:
- apt-transport-https
- ca-certificates
- software-properties-common
- curl
write_files:
- path: /etc/apt/keyrings
@@ -48,4 +49,6 @@ runcmd:
export FIREZONE_LOG_FORMAT="google-cloud"
export FIREZONE_GOOGLE_CLOUD_PROJECT_ID="${project_id}"
export FIREZONE_OTLP_GRPC_ENDPOINT="${otlp_grpc_endpoint}"
bash <(curl -fsSL https://raw.githubusercontent.com/firezone/firezone/main/scripts/gateway-systemd-install.sh)
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