You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -76,7 +76,9 @@ Deploy a docker compose project to a Google Cloud Compute Instance.
76
76
| <aname="input_os"></a> [os](#input\_os)| The host OS to install on the GCP instance |`string`|`"cos-125-19216-104-25"`| no |
77
77
| <aname="input_overlay_source_instance"></a> [overlay\_source\_instance](#input\_overlay\_source\_instance)| Name of production instance to get latest snapshot from (e.g., 'ojs-production'). Terraform will automatically use the most recent snapshot from this instance's data disk. Leave empty for production environments. |`string`|`""`| no |
78
78
| <aname="input_region"></a> [region](#input\_region)| GCP region for resources |`string`|`"us-east5"`| no |
79
+
| <aname="input_rootfs"></a> [rootfs](#input\_rootfs)| Path to additional rootfs files to copy into the VM. Files will be merged with the base rootfs. Example: '../platform/terraform/rootfs' |`string`|`""`| no |
79
80
| <aname="input_run_snapshots"></a> [run\_snapshots](#input\_run\_snapshots)| Enable daily snapshots of the data disk (recommended for production). Last seven days of snapshots are available. Also weekly snapshots for past year. |`bool`|`false`| no |
81
+
| <aname="input_runcmd"></a> [runcmd](#input\_runcmd)| Additional commands to run during cloud-init. Commands are executed after the main initialization. |`list(string)`|`[]`| no |
80
82
| <aname="input_users"></a> [users](#input\_users)| Map of usernames to lists of SSH public keys. Users will be created with docker group membership. Example: { "alice" = ["ssh-rsa AAAA..."], "bob" = ["ssh-ed25519 AAAA...", "ssh-rsa BBBB..."] } |`map(list(string))`|`{}`| no |
81
83
| <aname="input_volume_names"></a> [volume\_names](#input\_volume\_names)| List of docker volumes to overlay from production snapshot (e.g., ['compose\_ojs-public']). Production data is mounted read-only as lower layer, staging writes go to upper layer. |`list(string)`|`[]`| no |
82
84
| <aname="input_zone"></a> [zone](#input\_zone)| GCP zone for resources |`string`|`"us-east5-b"`| no |
Copy file name to clipboardExpand all lines: variables.tf
+13Lines changed: 13 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -134,3 +134,16 @@ variable "users" {
134
134
default={}
135
135
description="Map of usernames to lists of SSH public keys. Users will be created with docker group membership. Example: { \"alice\" = [\"ssh-rsa AAAA...\"], \"bob\" = [\"ssh-ed25519 AAAA...\", \"ssh-rsa BBBB...\"] }"
136
136
}
137
+
138
+
variable"rootfs" {
139
+
type=string
140
+
default=""
141
+
description="Path to additional rootfs files to copy into the VM. Files will be merged with the base rootfs. Example: '/path/to/custom/rootfs'"
142
+
}
143
+
144
+
variable"runcmd" {
145
+
type=list(string)
146
+
default=[]
147
+
description="Additional commands to run during cloud-init. Commands are executed after the main initialization."
0 commit comments