Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

change disk_name to name #724

Merged
merged 1 commit into from
Jan 19, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -761,7 +761,7 @@ resource "grid_deployment" "d1" {
NEXTCLOUD_DOMAIN = data.grid_gateway_domain.domain.fqdn
}
mounts {
disk_name = "data"
name = "data"
mount_point = "/mnt/data"
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/documentation/developers/tfcmd/tfcmd_vm.md
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ $ tfcmd get vm examplevm
"entrypoint": "/sbin/zinit init",
"mounts": [
{
"disk_name": "examplevmdisk",
"name": "examplevmdisk",
"mount_point": "/data"
}
],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ resources:
mycelium: true
# mycelium_ip_seed: b60f2b7ec39c # hex encoded 6 bytes [example]
mounts:
- disk_name: data
- name: data
mount_point: /app
env_vars:
SSH_KEY:
Expand Down Expand Up @@ -277,7 +277,7 @@ We have a scheduler, and a network just like before. But now, we also have a dep
mycelium: true
# mycelium_ip_seed: b60f2b7ec39c # hex encoded 6 bytes [example]
mounts:
- disk_name: data
- name: data
mount_point: /app
env_vars:
SSH_KEY:
Expand All @@ -287,7 +287,7 @@ We have a scheduler, and a network just like before. But now, we also have a dep
size: 2
```

The deployment can be linked to a network using `network_name` and can have virtual machines in the `vms` section, and disks in the `disks` section. The disk can be linked and mounted in the VM if `disk_name` is used in the `mounts` section of the VM.
The deployment can be linked to a network using `network_name` and can have virtual machines in the `vms` section, and disks in the `disks` section. The disk can be linked and mounted in the VM if `name` is used in the `mounts` section of the VM.

We also specify a couple of essential properties, like how many virtual cores, how much memory, what FList to use, and the environment variables in the `env_vars` section.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ resource "grid_deployment" "d1" {
flist = "https://hub.grid.tf/tf-official-vms/ubuntu-22.04.flist"
cpu = var.cpu
mounts {
disk_name = "disk1"
name = "disk1"
mount_point = "/disk1"
}
memory = var.memory
Expand All @@ -190,7 +190,7 @@ resource "grid_deployment" "d2" {
flist = "https://hub.grid.tf/tf-official-vms/ubuntu-22.04.flist"
cpu = var.cpu
mounts {
disk_name = "disk2"
name = "disk2"
mount_point = "/disk2"
}
memory = var.memory
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ resource "grid_deployment" "d1" {
memory = 1024
entrypoint = "/sbin/zinit init"
mounts {
disk_name = "data"
name = "data"
mount_point = "/app"
}
env_vars = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ resource "grid_deployment" "d1" {
flist = "https://hub.grid.tf/tf-official-vms/ubuntu-22.04.flist"
cpu = var.cpu
mounts {
disk_name = "disk1"
name = "disk1"
mount_point = "/disk1"
}
memory = var.memory
Expand All @@ -203,7 +203,7 @@ resource "grid_deployment" "d2" {
flist = "https://hub.grid.tf/tf-official-vms/ubuntu-22.04.flist"
cpu = var.cpu
mounts {
disk_name = "disk2"
name = "disk2"
mount_point = "/disk2"
}
memory = var.memory
Expand Down Expand Up @@ -751,7 +751,7 @@ To avoid errors, set HTTPS with the master VM and power off the worker VM.
flist = "https://hub.grid.tf/tf-official-vms/ubuntu-22.04.flist"
cpu = var.cpu
mounts {
disk_name = "disk2"
name = "disk2"
mount_point = "/disk2"
}
memory = var.memory
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ resource "grid_deployment" "d1" {
flist = "https://hub.grid.tf/tf-official-vms/ubuntu-22.04.flist"
cpu = var.cpu
mounts {
disk_name = "disk1"
name = "disk1"
mount_point = "/disk1"
}
memory = var.memory
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ resource "grid_deployment" "d1" {
NEXTCLOUD_DOMAIN = data.grid_gateway_domain.domain.fqdn
}
mounts {
disk_name = "data"
name = "data"
mount_point = "/mnt/data"
}
}
Expand All @@ -188,7 +188,7 @@ resource "grid_deployment" "d2" {
flist = "https://hub.grid.tf/tf-official-vms/ubuntu-22.04.flist"
cpu = var.cpu_vm2
mounts {
disk_name = "disk2"
name = "disk2"
mount_point = "/disk2"
}
memory = var.memory_vm2
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ resource "grid_deployment" "d1" {
cpu = var.cpu
memory = var.memory
mounts {
disk_name = "disk1"
name = "disk1"
mount_point = "/disk1"
}
entrypoint = "/sbin/zinit init"
Expand All @@ -138,7 +138,7 @@ resource "grid_deployment" "d1" {
cpu = var.cpu
memory = var.memory
mounts {
disk_name = "disk1"
name = "disk1"
mount_point = "/disk1"
}
entrypoint = "/sbin/zinit init"
Expand All @@ -154,7 +154,7 @@ resource "grid_deployment" "d1" {
cpu = var.cpu
memory = var.memory
mounts {
disk_name = "disk1"
name = "disk1"
mount_point = "/disk1"
}
entrypoint = "/sbin/zinit init"
Expand All @@ -170,7 +170,7 @@ resource "grid_deployment" "d1" {
cpu = var.cpu
memory = var.memory
mounts {
disk_name = "disk1"
name = "disk1"
mount_point = "/disk1"
}
entrypoint = "/sbin/zinit init"
Expand All @@ -186,7 +186,7 @@ resource "grid_deployment" "d1" {
cpu = var.cpu
memory = var.memory
mounts {
disk_name = "disk1"
name = "disk1"
mount_point = "/disk1"
}
entrypoint = "/sbin/zinit init"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ resource "grid_deployment" "d1" {
flist = "https://hub.grid.tf/tf-official-vms/ubuntu-22.04.flist"
cpu = var.cpu
mounts {
disk_name = "disk1"
name = "disk1"
mount_point = "/disk1"
}
memory = var.memory
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ resource "grid_deployment" "d1" {
flist = "https://hub.grid.tf/tf-official-vms/ubuntu-22.04.flist"
cpu = var.cpu
mounts {
disk_name = "disk1"
name = "disk1"
mount_point = "/disk1"
}
memory = var.memory
Expand All @@ -174,7 +174,7 @@ resource "grid_deployment" "d2" {
flist = "https://hub.grid.tf/tf-official-vms/ubuntu-22.04.flist"
cpu = var.cpu
mounts {
disk_name = "disk2"
name = "disk2"
mount_point = "/disk2"
}
memory = var.memory
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,11 +58,11 @@ resource "grid_deployment" "d1" {
memory = 2048
entrypoint = "/sbin/zinit init"
mounts {
disk_name = "mydisk1"
name = "mydisk1"
mount_point = "/opt"
}
mounts {
disk_name = "mydisk2"
name = "mydisk2"
mount_point = "/test"
}
env_vars = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -96,11 +96,11 @@ resource "grid_deployment" "d0" {
memory = 8192
entrypoint = "/sbin/zinit init"
mounts {
disk_name = "data0"
name = "data0"
mount_point = "/var/lib/docker"
}
mounts {
disk_name = "data1"
name = "data1"
mount_point = "/captain"
}
env_vars = {
Expand Down Expand Up @@ -387,7 +387,7 @@ resource "grid_deployment" "d2" {
memory = 2048
entrypoint = "/sbin/zinit init"
mounts {
disk_name = "data2"
name = "data2"
mount_point = "/var/lib/docker"
}
env_vars = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ Let modify the qsfs-on-microVM [example](./terraform_qsfs_on_microvm.md) to depl

```terraform
mounts {
disk_name = "rootfs"
name = "rootfs"
mount_point = "/"
}
```
Expand Down Expand Up @@ -160,11 +160,11 @@ resource "grid_deployment" "qsfs" {
SSH_KEY = "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQC9MI7fh4xEOOEKL7PvLvXmSeRWesToj6E26bbDASvlZnyzlSKFLuYRpnVjkr8JcuWKZP6RQn8+2aRs6Owyx7Tx+9kmEh7WI5fol0JNDn1D0gjp4XtGnqnON7d0d5oFI+EjQQwgCZwvg0PnV/2DYoH4GJ6KPCclPz4a6eXrblCLA2CHTzghDgyj2x5B4vB3rtoI/GAYYNqxB7REngOG6hct8vdtSndeY1sxuRoBnophf7MPHklRQ6EG2GxQVzAOsBgGHWSJPsXQkxbs8am0C9uEDL+BJuSyFbc/fSRKptU1UmS18kdEjRgGNoQD7D+Maxh1EbmudYqKW92TVgdxXWTQv1b1+3dG5+9g+hIWkbKZCBcfMe4nA5H7qerLvoFWLl6dKhayt1xx5mv8XhXCpEC22/XHxhRBHBaWwSSI+QPOCvs4cdrn4sQU+EXsy7+T7FIXPeWiC2jhFd6j8WIHAv6/rRPsiwV1dobzZOrCxTOnrqPB+756t7ANxuktsVlAZaM= sameh@sameh-inspiron-3576"
}
mounts {
disk_name = "rootfs"
name = "rootfs"
mount_point = "/"
}
mounts {
disk_name = "qsfs"
name = "qsfs"
mount_point = "/qsfs"
}
}
Expand All @@ -177,7 +177,7 @@ output "planetary_ip" {
}
```

**note**: the `grid_deployment.qsfs.name` should be the same as the qsfs disk name in `grid_deployment.vms.mounts.disk_name`.
**note**: the `grid_deployment.qsfs.name` should be the same as the qsfs disk name in `grid_deployment.vms.mounts.name`.



Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@ resource "grid_deployment" "qsfs" {
SSH_KEY = var.SSH_KEY
}
mounts {
disk_name = "qsfs"
name = "qsfs"
mount_point = "/qsfs"
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,11 @@ resource "grid_deployment" "d1" {
memory = 1024
entrypoint = "/sbin/zinit init"
mounts {
disk_name = "mydisk1"
name = "mydisk1"
mount_point = "/opt"
}
mounts {
disk_name = "mydisk2"
name = "mydisk2"
mount_point = "/test"
}
env_vars = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ resource "grid_deployment" "d1" {
flist = "https://hub.grid.tf/tf-official-vms/ubuntu-22.04.flist"
cpu = var.cpu
mounts {
disk_name = "disk1"
name = "disk1"
mount_point = "/disk1"
}
memory = var.memory
Expand Down