Skip to content

Commit

Permalink
Doc update to add new parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
Golgautier committed Nov 24, 2022
1 parent f933e90 commit 7c6c21f
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 7 deletions.
2 changes: 1 addition & 1 deletion docs/builders/overview.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ Then, run [`packer init`](https://www.packer.io/docs/commands/init).
packer {
required_plugins {
nutanix = {
version = ">= 0.2.0"
version = ">= 0.3.0"
source = "github.com/nutanix-cloud-native/nutanix"
}
}
Expand Down
15 changes: 9 additions & 6 deletions docs/builders/plugin.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ These parameters allow to configure everything around image creation, from the t

### All OS
- `image_name` (string) - Name of the output image
- `image_description` (string) - Description for output image
- `force_deregister` (boolean) - Allow output image override if already exists
- `shutdown_command` (string) - Command line to shutdown your temporary VM
- `shutdown_timeout` (string) - Timeout for VM shutdown (format : 2m)
- `communicator` (string) - Protocol used for Packer connection (ex "winrm" or "ssh"). Default is : "ssh"
Expand All @@ -58,10 +60,10 @@ Use `vm_disks{}` entry to configure disk to your VM image. If you want to config

All parameters of this `vm_disks` section are described below.

3 types of disk configurations can by used
3 types of disk configurations can be used
- disk (create an empty disk)
- disk image (create disk from image)
- ISO image (create disk from image).
- disk image (create disk from Nutanix image library)
- ISO image (create disk from ISO image).

### Disk
- `image_type` (string) - "DISK"
Expand All @@ -76,9 +78,10 @@ Sample:
```

### Disk image
- `image_type` (string) - "DISK_IMAGE"
- `source_image_name` (string) - Name of the image used as disk source (If you want an empty disk, do not specify source)
- `source_image_uuid` (string) - UUID of the image used as disk source (If you want an empty disk, do not specify source)
- `image_type` (string) - "DISK_IMAGE" (You must use one of the three following parameter to source the image)
- `source_image_name` (string) - Name of the image used as disk source
- `source_image_uuid` (string) - UUID of the image used as disk source
- `source_image_uri` (string) - URI of the image used as disk source (If image is not already on the cluster, it will download and store it before launching output image)
- `disk_size_gb` (integer) - size of th disk (in gigabytes)

Sample:
Expand Down

0 comments on commit 7c6c21f

Please sign in to comment.