chore(infra): Use simplified config for swap space (#8488)

Turns out cloud-init has native support for configuring swapfiles, so we
use that here and make it configurable.

The `environments` submodule will be updated to inject the current value
into here.
This commit is contained in:
Jamil
2025-03-19 12:28:08 -07:00
committed by GitHub
parent 3313e7377e
commit 73c63c8ea4
5 changed files with 17 additions and 8 deletions

View File

@@ -29,7 +29,8 @@ jobs:
sudo apt-get update
sudo apt-get install -y cloud-init
sudo cloud-init schema --config-file terraform/modules/google-cloud/apps/relay/templates/cloud-init.yaml
sudo cloud-init schema --config-file terraform/modules/google-cloud/apps/elixir/templates/cloud-init.yaml
# This doesn't work if the file contains interpolated variables
# sudo cloud-init schema --config-file terraform/modules/google-cloud/apps/elixir/templates/cloud-init.yaml
sudo cloud-init schema --config-file terraform/modules/google-cloud/apps/gateway-region-instance-group/templates/cloud-init.yaml
- name: Check Formatting
working-directory: terraform