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
+84-47
Original file line number
Diff line number
Diff line change
@@ -19,42 +19,72 @@ Terraform module for KVM/Libvirt Virtual Machine. This module will create a KVM
19
19
20
20
- Ubuntu 20.04 TLS
21
21
22
-
## Parameters
23
-
24
-
| Parameter | Description | Default value
25
-
|-----------------|-----|-----
26
-
|os_img_url|URL to the OS image|https://cloud-images.ubuntu.com/focal/current/focal-server-cloudimg-amd64.img
27
-
|base_pool_name|When defined it will be used in combination with `base_volume_name` to create root volume as linked clone from this pool name|null
28
-
|base_volume_name|When defined it will be used in combination with `base_pool_name` to create root volume as linked clone from this pool/vol name. Defining this variable will disable downloading `os_img_url` and creating a base volume| null
29
-
|autostart| Autostart the Domain| true
30
-
|vm_count|Number of VMs| 1
31
-
|index_start|From where the index start| 1
32
-
|vm_hostname_prefix|VM hostname prefix|vm
33
-
|memory|RAM in MB|1024
34
-
|additional_disk_ids|List of volume ids to be attached to domain| []
35
-
|hugepages|Use Hugepages|false
36
-
|vcpu|Number of vCPUs|1
37
-
|pool|Storage pool name|default
38
-
|system_volume|System Volume size (GB)|10
39
-
|share_filesystem.source|Directory of the host to be shared with the VM|null
40
-
|share_filesystem.target|Tag that is exported to the VM as a hint for where to mount the source|null
41
-
|share_filesystem.readonly|Enables exporting filesystem as a readonly mount|false
|[template_cloudinit_config.init_config](https://registry.terraform.io/providers/hashicorp/template/latest/docs/data-sources/cloudinit_config)| data source |
43
+
|[template_file.init_config](https://registry.terraform.io/providers/hashicorp/template/latest/docs/data-sources/file)| data source |
44
+
|[template_file.network_config](https://registry.terraform.io/providers/hashicorp/template/latest/docs/data-sources/file)| data source |
45
+
46
+
## Inputs
47
+
48
+
| Name | Description | Type | Default | Required |
| <aname="input_autostart"></a> [autostart](#input\_autostart)| Autostart the domain |`bool`|`true`| no |
51
+
| <aname="input_base_pool_name"></a> [base\_pool\_name](#input\_base\_pool\_name)| Name of base OS image |`any`|`null`| no |
52
+
| <aname="input_base_volume_name"></a> [base\_volume\_name](#input\_base\_volume\_name)| Name of base OS image |`any`|`null`| no |
53
+
| <aname="input_bridge"></a> [bridge](#input\_bridge)| Bridge interface |`string`|`"virbr0"`| no |
54
+
| <aname="input_cpu_mode"></a> [cpu\_mode](#input\_cpu\_mode)| CPU mode |`string`|`"host-passthrough"`| no |
55
+
| <aname="input_dhcp"></a> [dhcp](#input\_dhcp)| Use DHCP or Static IP settings |`bool`|`false`| no |
56
+
| <aname="input_hostname"></a> [hostname](#input\_hostname)| VM hostname or FQDN |`string`|`"server"`| no |
57
+
| <aname="input_index_start"></a> [index\_start](#input\_index\_start)| From where the indexig start |`number`|`1`| no |
58
+
| <aname="input_ip_address"></a> [ip\_address](#input\_ip\_address)| List of IP addresses |`list(string)`| <pre>[<br> "192.168.123.101"<br>]</pre> | no |
59
+
| <aname="input_ip_gateway"></a> [ip\_gateway](#input\_ip\_gateway)| IP addresses of a gateway |`string`|`"192.168.123.1"`| no |
60
+
| <aname="input_ip_nameserver"></a> [ip\_nameserver](#input\_ip\_nameserver)| IP addresses of a nameserver |`string`|`"192.168.123.1"`| no |
61
+
| <aname="input_local_admin"></a> [local\_admin](#input\_local\_admin)| Admin user without ssh access |`string`|`""`| no |
62
+
| <aname="input_local_admin_passwd"></a> [local\_admin\_passwd](#input\_local\_admin\_passwd)| Local admin user password |`string`|`"password_example"`| no |
63
+
| <aname="input_memory"></a> [memory](#input\_memory)| RAM in MB |`string`|`"1024"`| no |
64
+
| <aname="input_os_img_url"></a> [os\_img\_url](#input\_os\_img\_url)| URL to the OS image |`string`|`"https://cloud-images.ubuntu.com/focal/current/focal-server-cloudimg-amd64.img"`| no |
65
+
| <aname="input_pool"></a> [pool](#input\_pool)| Storage pool name |`string`|`"default"`| no |
| <aname="input_ssh_admin"></a> [ssh\_admin](#input\_ssh\_admin)| Admin user with ssh access |`string`|`"ssh-admin"`| no |
68
+
| <aname="input_ssh_keys"></a> [ssh\_keys](#input\_ssh\_keys)| List of public ssh keys |`list(string)`|`[]`| no |
69
+
| <aname="input_ssh_private_key"></a> [ssh\_private\_key](#input\_ssh\_private\_key)| Private key for SSH connection test |`any`|`null`| no |
70
+
| <aname="input_system_volume"></a> [system\_volume](#input\_system\_volume)| System Volume size (GB) |`number`|`10`| no |
71
+
| <aname="input_time_zone"></a> [time\_zone](#input\_time\_zone)| Time Zone |`string`|`"UTC"`| no |
72
+
| <aname="input_vcpu"></a> [vcpu](#input\_vcpu)| Number of vCPUs |`number`|`1`| no |
73
+
| <aname="input_vm_count"></a> [vm\_count](#input\_vm\_count)| Number of VMs |`number`|`1`| no |
74
+
| <aname="input_vm_hostname_prefix"></a> [vm\_hostname\_prefix](#input\_vm\_hostname\_prefix)| VM hostname prefix |`string`|`"vm"`| no |
75
+
| <aname="input_xml_override"></a> [xml\_override](#input\_xml\_override)| With these variables you can: Enable hugepages; Set USB controllers; Attach USB devices |`any`| <pre>{<br> "hugepages": false,<br> "usb_controllers": [<br> {<br> "model": "piix3-uhci"<br> }<br> ],<br> "usb_devices": []<br>}</pre> | no |
0 commit comments