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-44
Original file line number
Diff line number
Diff line change
@@ -18,41 +18,71 @@ Terraform module for KVM/Libvirt Virtual Machine. This module will create a KVM
18
18
19
19
- Ubuntu 20.04 TLS
20
20
21
-
## Parameters
22
-
23
-
| Parameter | Description | Default value
24
-
|-----------------|-----|-----
25
-
|os_img_url|URL to the OS image|https://cloud-images.ubuntu.com/focal/current/focal-server-cloudimg-amd64.img
26
-
|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
27
-
|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
28
-
|autostart| Autostart the Domain| true
29
-
|vm_count|Number of VMs| 1
30
-
|index_start|From where the index start| 1
31
-
|vm_hostname_prefix|VM hostname prefix|vm
32
-
|memory|RAM in MB|1024
33
-
|hugepages|Use Hugepages|false
34
-
|vcpu|Number of vCPUs|1
35
-
|pool|Storage pool name|default
36
-
|system_volume|System Volume size (GB)|10
37
-
|share_filesystem.source|Directory of the host to be shared with the VM|null
38
-
|share_filesystem.target|Tag that is exported to the VM as a hint for where to mount the source|null
39
-
|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 |
42
+
|[template_file.init_config](https://registry.terraform.io/providers/hashicorp/template/latest/docs/data-sources/file)| data source |
43
+
|[template_file.network_config](https://registry.terraform.io/providers/hashicorp/template/latest/docs/data-sources/file)| data source |
44
+
45
+
## Inputs
46
+
47
+
| Name | Description | Type | Default | Required |
| <aname="input_autostart"></a> [autostart](#input\_autostart)| Autostart the domain |`bool`|`true`| no |
50
+
| <aname="input_base_pool_name"></a> [base\_pool\_name](#input\_base\_pool\_name)| Name of base OS image |`any`|`null`| no |
51
+
| <aname="input_base_volume_name"></a> [base\_volume\_name](#input\_base\_volume\_name)| Name of base OS image |`any`|`null`| no |
52
+
| <aname="input_bridge"></a> [bridge](#input\_bridge)| Bridge interface |`string`|`"virbr0"`| no |
53
+
| <aname="input_cpu_mode"></a> [cpu\_mode](#input\_cpu\_mode)| CPU mode |`string`|`"host-passthrough"`| no |
54
+
| <aname="input_dhcp"></a> [dhcp](#input\_dhcp)| Use DHCP or Static IP settings |`bool`|`false`| no |
55
+
| <aname="input_hostname"></a> [hostname](#input\_hostname)| VM hostname or FQDN |`string`|`"server"`| no |
56
+
| <aname="input_index_start"></a> [index\_start](#input\_index\_start)| From where the indexig start |`number`|`1`| no |
57
+
| <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 |
58
+
| <aname="input_ip_gateway"></a> [ip\_gateway](#input\_ip\_gateway)| IP addresses of a gateway |`string`|`"192.168.123.1"`| no |
59
+
| <aname="input_ip_nameserver"></a> [ip\_nameserver](#input\_ip\_nameserver)| IP addresses of a nameserver |`string`|`"192.168.123.1"`| no |
60
+
| <aname="input_local_admin"></a> [local\_admin](#input\_local\_admin)| Admin user without ssh access |`string`|`""`| no |
61
+
| <aname="input_local_admin_passwd"></a> [local\_admin\_passwd](#input\_local\_admin\_passwd)| Local admin user password |`string`|`"password_example"`| no |
62
+
| <aname="input_memory"></a> [memory](#input\_memory)| RAM in MB |`string`|`"1024"`| no |
63
+
| <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 |
64
+
| <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 |
67
+
| <aname="input_ssh_keys"></a> [ssh\_keys](#input\_ssh\_keys)| List of public ssh keys |`list(string)`|`[]`| no |
68
+
| <aname="input_ssh_private_key"></a> [ssh\_private\_key](#input\_ssh\_private\_key)| Private key for SSH connection test |`any`|`null`| no |
69
+
| <aname="input_system_volume"></a> [system\_volume](#input\_system\_volume)| System Volume size (GB) |`number`|`10`| no |
70
+
| <aname="input_time_zone"></a> [time\_zone](#input\_time\_zone)| Time Zone |`string`|`"UTC"`| no |
71
+
| <aname="input_vcpu"></a> [vcpu](#input\_vcpu)| Number of vCPUs |`number`|`1`| no |
72
+
| <aname="input_vm_count"></a> [vm\_count](#input\_vm\_count)| Number of VMs |`number`|`1`| no |
73
+
| <aname="input_vm_hostname_prefix"></a> [vm\_hostname\_prefix](#input\_vm\_hostname\_prefix)| VM hostname prefix |`string`|`"vm"`| no |
74
+
| <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