summaryrefslogtreecommitdiff
path: root/main.tf
diff options
context:
space:
mode:
authorjerome <jerome@xlinfo.fr>2022-09-13 01:26:13 +0200
committerjerome <jerome@xlinfo.fr>2022-09-13 01:26:13 +0200
commit6556b78865d1e73279d5a2091470c3b0180aad0e (patch)
tree76b44f9073b8b53add202ed916e9c33b469246e1 /main.tf
parente48fdf8a4c5ed73f13c9a8cdef9fe4916b9afd7f (diff)
downloadvbox-0.1.tar.gz
vbox-0.1.zip
Revert "update tag 0.2"0.1
This reverts commit e48fdf8a4c5ed73f13c9a8cdef9fe4916b9afd7f.
Diffstat (limited to 'main.tf')
-rw-r--r--main.tf9
1 files changed, 4 insertions, 5 deletions
diff --git a/main.tf b/main.tf
index 9aad2bc..624c7e4 100644
--- a/main.tf
+++ b/main.tf
@@ -7,7 +7,6 @@ terraform {
}
}
-
resource "virtualbox_vm" "node" {
# count = 1
# name = format("ubuntu%01d", count.index + 3)
@@ -15,12 +14,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 = 4
+ cpus = 2
memory = "2048 mib"
network_adapter {
type = "bridged"
- host_interface = "ens160"
+ host_interface = "enp1s0"
}
}
@@ -28,8 +27,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
+# }
#}
#########################