Skip to content

Commit 7cde7a8

Browse files
authored
update readme with automatically-generated docs (#41)
1 parent 7f052de commit 7cde7a8

File tree

1 file changed

+48
-27
lines changed

1 file changed

+48
-27
lines changed

README.md

+48-27
Original file line numberDiff line numberDiff line change
@@ -6,30 +6,51 @@ Terraform module to manage VM instances on Proxmox hosts.
66

77
This module is an opinionated take on creating a VM in Proxmox; not all possible configuration options are exposed. It is expected to be used in conjunction with [terraform-module-proxmox-cloudinit-template](https://github.com/glitchcrab/terraform-module-proxmox-cloudinit-template) to provide the required cloud-init files for this module to consume.
88

9-
## Variables
10-
11-
| Name | Description | Type | Default | Required |
12-
|------|-------------|------|---------|:--------:|
13-
| boot | Boot order for the instance. | `string` | `"order=scsi0;net0"` | no |
14-
| cicustom | Path(s) to cloud-init config files (ignored when pxe_boot is true). | `string` | `null` | no |
15-
| clone | Name of the template to clone (ignored when pxe_boot is true). | `string` | `null` | no |
16-
| cloudinit_cdrom_storage | Name of the storage to create the cloud-init image in (e.g. local-lvm). | `string` | `null` | no |
17-
| cores | Number of cores to allocate. | `number` | n/a | yes |
18-
| cpu | The type of CPU to emulate in the guest. | `string` | `null` | no |
19-
| disks | List of objects representing additional disks. | <pre>list(object({<br> type = string<br> storage = string<br> size = string<br> }))</pre> | `null` | no |
20-
| full_clone | Create a full clone; if false, a linked clone will be created (ignored when pxe_boot is true). | `bool` | `null` | no |
21-
| hagroup | The HA group identifier the resource belongs to. | `string` | `null` | no |
22-
| hastate | Requested HA state for the resource. | `string` | `null` | no |
23-
| memory | Amount of memory to allocate. | `number` | n/a | yes |
24-
| network_interfaces | List of objects representing instance interface configuration. | <pre>list(object({<br> model = string<br> bridge = string<br> tag = number<br> macaddr = string<br> }))</pre> | n/a | yes |
25-
| onboot | Whether to have the VM startup after the PVE node starts. | `bool` | `null` | no |
26-
| oncreate | Whether to have the VM startup after the VM is created. | `bool` | `null` | no |
27-
| os_type | Type of OS for preprovisioning. | `string` | `null` | no |
28-
| pve_instance_description | Description of the instance. | `string` | n/a | yes |
29-
| pve_instance_name | Name of the instance. | `string` | n/a | yes |
30-
| pxe_boot | Set PXE boot mode | `bool` | `null` | no |
31-
| qemu_agent | Enable QEMU guest agent (must be installed in the template). Set to `1` to enable or `0` to disable. | `number` | `0` | no |
32-
| resource_pool | Name of the resource pool the assign the instance to. | `string` | n/a | yes |
33-
| sockets | Number of sockets to allocate. | `number` | n/a | yes |
34-
| target_node | Name of the node to assign the instance to. | `string` | n/a | yes |
35-
| vmid | ID of the VM (must be unique). | `number` | n/a | yes |
9+
<!-- BEGIN_TF_DOCS -->
10+
## Requirements
11+
12+
| Name | Version |
13+
|------|---------|
14+
| terraform | >= 0.14.0 |
15+
| proxmox | >= 2.9.14 |
16+
17+
## Providers
18+
19+
| Name | Version |
20+
|------|---------|
21+
| proxmox | 2.9.11 |
22+
23+
## Resources
24+
25+
| Name | Type |
26+
|------|------|
27+
| [proxmox_vm_qemu.proxmox_instance](https://registry.terraform.io/providers/Telmate/proxmox/latest/docs/resources/vm_qemu) | resource |
28+
29+
## Inputs
30+
31+
| Name | Description | Type | Required |
32+
|------|-------------|------|:--------:|
33+
| cores | Number of cores to allocate. | `number` | yes |
34+
| memory | Amount of memory to allocate. | `number` | yes |
35+
| network_interfaces | List of objects representing instance interface configuration. | <pre>list(object({<br> model = string<br> bridge = string<br> tag = number<br> macaddr = string<br> }))</pre> | yes |
36+
| pve_instance_description | Description of the instance. | `string` | yes |
37+
| pve_instance_name | Name of the instance. | `string` | yes |
38+
| resource_pool | Name of the resource pool the assign the instance to. | `string` | yes |
39+
| sockets | Number of sockets to allocate. | `number` | yes |
40+
| target_node | Name of the node to assign the instance to. | `string` | yes |
41+
| vmid | ID of the VM (must be unique). | `number` | yes |
42+
| boot | Boot order for the instance. | `string` | no |
43+
| cicustom | Path(s) to cloud-init config files (ignored when pxe_boot is true). | `string` | no |
44+
| clone | Name of the template to clone (ignored when pxe_boot is true). | `string` | no |
45+
| cloudinit_cdrom_storage | Name of the storage to create the cloud-init image in (e.g. local-lvm). | `string` | no |
46+
| cpu | The type of CPU to emulate in the guest. | `string` | no |
47+
| disks | List of objects representing additional disks. | <pre>list(object({<br> type = string<br> storage = string<br> size = string<br> }))</pre> | no |
48+
| full_clone | Create a full clone; if false, a linked clone will be created (ignored when pxe_boot is true). | `bool` | no |
49+
| hagroup | The HA group identifier the resource belongs to. | `string` | no |
50+
| hastate | Requested HA state for the resource. | `string` | no |
51+
| onboot | Whether to have the VM startup after the PVE node starts. | `bool` | no |
52+
| oncreate | Whether to have the VM startup after the VM is created. | `bool` | no |
53+
| os_type | Type of OS for preprovisioning. | `string` | no |
54+
| pxe_boot | Set PXE boot mode | `bool` | no |
55+
| qemu_agent | Enable QEMU guest agent (must be installed in the template). Set to `1` to enable or `0` to disable. | `number` | no |
56+
<!-- END_TF_DOCS -->

0 commit comments

Comments
 (0)