diff options
| author | jerome <jerome@xlinfo.fr> | 2022-09-13 01:25:49 +0200 |
|---|---|---|
| committer | jerome <jerome@xlinfo.fr> | 2022-09-13 01:25:49 +0200 |
| commit | e48fdf8a4c5ed73f13c9a8cdef9fe4916b9afd7f (patch) | |
| tree | 17602711902bb429d2ccd1706eb947f038cc7b1b /main.tf | |
| parent | 1b3a9f8a0518d3f895ebb63511fe1318e72f82e0 (diff) | |
| download | vbox-e48fdf8a4c5ed73f13c9a8cdef9fe4916b9afd7f.tar.gz vbox-e48fdf8a4c5ed73f13c9a8cdef9fe4916b9afd7f.zip | |
update tag 0.2
Diffstat (limited to 'main.tf')
| -rw-r--r-- | main.tf | 9 |
1 files changed, 5 insertions, 4 deletions
@@ -7,6 +7,7 @@ terraform { } } + resource "virtualbox_vm" "node" { # count = 1 # name = format("ubuntu%01d", count.index + 3) @@ -14,12 +15,12 @@ resource "virtualbox_vm" "node" { count = var.nb name = format("ubuntu%01d", count.index + var.start) image = "https://app.vagrantup.com/ubuntu/boxes/focal64/versions/20220905.0.0/providers/virtualbox.box" - cpus = 2 + cpus = 4 memory = "2048 mib" network_adapter { type = "bridged" - host_interface = "enp1s0" + host_interface = "ens160" } } @@ -27,8 +28,8 @@ resource "virtualbox_vm" "node" { #output "ip_addresses" { # value = { # for vm in virtualbox_vm.node.*: -# vm.name => vm.network_adapter.0.ipv4_address -# } +# vm.name => vm.network_adapter.0.ipv4_address +# } #} ######################### |
