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
Terraform module for KVM/Libvirt Virtual Machine. This module will create a libvirt domain, storage pool, system volume and configure the VM using cloud_init. This module is using [dmacvicar/libvirt](https://github.com/dmacvicar/terraform-provider-libvirt) Terraform provider.
6
+
Terraform module for KVM/Libvirt Virtual Machine. This module will create a KVM Virtual Machine(s), configure it using Cloud Init and test the ssh connection. This module is using [dmacvicar/libvirt](https://github.com/dmacvicar/terraform-provider-libvirt) Terraform provider.
7
7
8
8
## What the module provides
9
9
10
-
- create one or more libvirt domains
11
-
- create a storage pool
12
-
- create a system volume from the pool
13
-
- use cloud_init to configure VMs
10
+
- create one or more VMs at once
11
+
- libvirt domain(s) with one NIC connected to the network using the **bridge interface**
12
+
- user can set number of vCPUs, RAM, system volume size
13
+
- setup network interface using DHCP or static
14
+
- cloud_init VM(s) configuration
15
+
- test the ssh connection
14
16
15
17
## Parameters
16
18
@@ -22,22 +24,68 @@ Terraform module for KVM/Libvirt Virtual Machine. This module will create a libv
22
24
|vm_hostname_prefix|VM hostname prefix|vm
23
25
|memory|RAM in MB|512
24
26
|vcpu|Number of vCPUs|1
27
+
|pool|Storage pool name|default
25
28
|system_volume|System Volume size (GB)|10
26
29
|dhcp|Use DHCP or Static IP settings|false
27
-
|ip_address|"List of IP addresses|[ "192.168.123.1" ]
28
-
|ip_nameserver|IP addresses of a nameserver|192.168.123.1
29
-
|ip_gateway|IP addresses of a gateway|192.168.123.1
30
+
|ip_address|"List of static IP addresses|[ "192.168.123.1" ]
31
+
|ip_nameserver|Static IP addresses of a nameserver|192.168.123.1
32
+
|ip_gateway|Static IP addresses of a gateway|192.168.123.1
30
33
|ssh_admin|Admin user with ssh access|ssh-admin
31
34
|ssh_keys|List of public ssh keys| []
32
35
|local_admin|Admin user without ssh access|local-admin
33
36
|local_admin_passwd|Local admin user password|password_example
34
37
|time_zone|Time Zone|UTC
35
-
|ssh_private_key|Private key for SSH connection test|~/.ssh/deployer_keys/id_ed25519
36
-
37
-
**Cloud_init** configuration can be found in `modules/virt-machine/templates`.
38
+
|ssh_private_key|Private key for SSH connection test|~/.ssh/id_ed25519
0 commit comments