cambio número de instancias
This commit is contained in:
parent
eef407b5b8
commit
d6c044fb6b
1
.gitignore
vendored
1
.gitignore
vendored
@ -1,3 +1,4 @@
|
||||
env.sh
|
||||
*.log
|
||||
*.backup
|
||||
*tfstate*
|
||||
|
2
main.tf
2
main.tf
@ -35,7 +35,7 @@ resource "random_password" "password" {
|
||||
|
||||
# servers definition
|
||||
resource "proxmox_vm_qemu" "hashi_server" {
|
||||
count = 1 # num of instances, 0 to destroy all
|
||||
count = 2 # num of instances, 0 to destroy all
|
||||
name = "hashi-${count.index + 1}" # autonum
|
||||
target_node = var.proxmox_host # defined in vars.tf
|
||||
clone = var.template_name # defined in vars.tf
|
||||
|
@ -1,7 +1,7 @@
|
||||
{
|
||||
"version": 4,
|
||||
"terraform_version": "1.5.6",
|
||||
"serial": 84,
|
||||
"serial": 99,
|
||||
"lineage": "9d9b0d60-7a22-799c-7440-c01afa77a9fb",
|
||||
"outputs": {},
|
||||
"resources": [
|
||||
@ -50,7 +50,161 @@
|
||||
"bridge": null,
|
||||
"ci_wait": null,
|
||||
"cicustom": "",
|
||||
"cipassword": "7=+LNuFPaXFJWWi-",
|
||||
"cipassword": "gl8!8V45vl])x4*3",
|
||||
"ciuser": "alpine",
|
||||
"clone": "alpine-gold",
|
||||
"clone_wait": 10,
|
||||
"cloudinit_cdrom_storage": null,
|
||||
"cores": 2,
|
||||
"cpu": "host",
|
||||
"default_ipv4_address": null,
|
||||
"define_connection_info": true,
|
||||
"desc": "",
|
||||
"disk": [
|
||||
{
|
||||
"aio": "",
|
||||
"backup": true,
|
||||
"cache": "none",
|
||||
"discard": "",
|
||||
"file": "vm-104-disk-0",
|
||||
"format": "raw",
|
||||
"iops": 0,
|
||||
"iops_max": 0,
|
||||
"iops_max_length": 0,
|
||||
"iops_rd": 0,
|
||||
"iops_rd_max": 0,
|
||||
"iops_rd_max_length": 0,
|
||||
"iops_wr": 0,
|
||||
"iops_wr_max": 0,
|
||||
"iops_wr_max_length": 0,
|
||||
"iothread": 0,
|
||||
"mbps": 0,
|
||||
"mbps_rd": 0,
|
||||
"mbps_rd_max": 0,
|
||||
"mbps_wr": 0,
|
||||
"mbps_wr_max": 0,
|
||||
"media": "",
|
||||
"replicate": 0,
|
||||
"size": "10G",
|
||||
"slot": 0,
|
||||
"ssd": 0,
|
||||
"storage": "local-lvm",
|
||||
"storage_type": "lvmthin",
|
||||
"type": "scsi",
|
||||
"volume": "local-lvm:vm-104-disk-0"
|
||||
}
|
||||
],
|
||||
"disk_gb": null,
|
||||
"force_create": false,
|
||||
"force_recreate_on_change_of": null,
|
||||
"full_clone": true,
|
||||
"guest_agent_ready_timeout": 100,
|
||||
"hagroup": "",
|
||||
"hastate": "",
|
||||
"hostpci": [],
|
||||
"hotplug": "network,disk,usb",
|
||||
"id": "pve/qemu/104",
|
||||
"ipconfig0": "ip=192.168.1.71/24,gw=192.168.1.1",
|
||||
"ipconfig1": "",
|
||||
"ipconfig10": "",
|
||||
"ipconfig11": "",
|
||||
"ipconfig12": "",
|
||||
"ipconfig13": "",
|
||||
"ipconfig14": "",
|
||||
"ipconfig15": "",
|
||||
"ipconfig2": "",
|
||||
"ipconfig3": "",
|
||||
"ipconfig4": "",
|
||||
"ipconfig5": "",
|
||||
"ipconfig6": "",
|
||||
"ipconfig7": "",
|
||||
"ipconfig8": "",
|
||||
"ipconfig9": "",
|
||||
"iso": null,
|
||||
"kvm": true,
|
||||
"mac": null,
|
||||
"machine": "",
|
||||
"memory": 2048,
|
||||
"name": "hashi-1",
|
||||
"nameserver": "",
|
||||
"network": [
|
||||
{
|
||||
"bridge": "vmbr0",
|
||||
"firewall": false,
|
||||
"link_down": false,
|
||||
"macaddr": "2E:D7:B3:F3:69:9A",
|
||||
"model": "virtio",
|
||||
"mtu": 0,
|
||||
"queues": 0,
|
||||
"rate": 0,
|
||||
"tag": -1
|
||||
}
|
||||
],
|
||||
"nic": null,
|
||||
"numa": false,
|
||||
"onboot": false,
|
||||
"oncreate": true,
|
||||
"os_network_config": null,
|
||||
"os_type": "cloud-init",
|
||||
"pool": "",
|
||||
"preprovision": true,
|
||||
"pxe": null,
|
||||
"qemu_os": "l26",
|
||||
"reboot_required": false,
|
||||
"scsihw": "virtio-scsi-pci",
|
||||
"searchdomain": "",
|
||||
"serial": [],
|
||||
"sockets": 1,
|
||||
"ssh_forward_ip": null,
|
||||
"ssh_host": null,
|
||||
"ssh_port": null,
|
||||
"ssh_private_key": null,
|
||||
"ssh_user": null,
|
||||
"sshkeys": " ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIPiMj6yG62yNiju2H3FQicX76AsBRZfxpMMfVeCEXEsF sergio@nas\n\n",
|
||||
"startup": "",
|
||||
"storage": null,
|
||||
"storage_type": null,
|
||||
"tablet": true,
|
||||
"tags": "",
|
||||
"target_node": "pve",
|
||||
"timeouts": null,
|
||||
"unused_disk": [],
|
||||
"usb": [],
|
||||
"vcpus": 0,
|
||||
"vga": [],
|
||||
"vlan": -1,
|
||||
"vmid": null
|
||||
},
|
||||
"sensitive_attributes": [
|
||||
[
|
||||
{
|
||||
"type": "get_attr",
|
||||
"value": "cipassword"
|
||||
}
|
||||
]
|
||||
],
|
||||
"private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjoxMjAwMDAwMDAwMDAwLCJkZWZhdWx0IjoxMjAwMDAwMDAwMDAwLCJkZWxldGUiOjEyMDAwMDAwMDAwMDAsInJlYWQiOjEyMDAwMDAwMDAwMDAsInVwZGF0ZSI6MTIwMDAwMDAwMDAwMH19",
|
||||
"dependencies": [
|
||||
"data.external.env",
|
||||
"random_password.password"
|
||||
]
|
||||
},
|
||||
{
|
||||
"index_key": 1,
|
||||
"schema_version": 0,
|
||||
"attributes": {
|
||||
"additional_wait": 5,
|
||||
"agent": 0,
|
||||
"args": "",
|
||||
"automatic_reboot": true,
|
||||
"balloon": 0,
|
||||
"bios": "seabios",
|
||||
"boot": "c",
|
||||
"bootdisk": "scsi0",
|
||||
"bridge": null,
|
||||
"ci_wait": null,
|
||||
"cicustom": "",
|
||||
"cipassword": "gl8!8V45vl])x4*3",
|
||||
"ciuser": "alpine",
|
||||
"clone": "alpine-gold",
|
||||
"clone_wait": 10,
|
||||
@ -104,7 +258,7 @@
|
||||
"hostpci": [],
|
||||
"hotplug": "network,disk,usb",
|
||||
"id": "pve/qemu/103",
|
||||
"ipconfig0": "ip=192.168.1.71/24,gw=192.168.1.1",
|
||||
"ipconfig0": "ip=192.168.1.72/24,gw=192.168.1.1",
|
||||
"ipconfig1": "",
|
||||
"ipconfig10": "",
|
||||
"ipconfig11": "",
|
||||
@ -125,14 +279,14 @@
|
||||
"mac": null,
|
||||
"machine": "",
|
||||
"memory": 2048,
|
||||
"name": "hashi-1",
|
||||
"name": "hashi-2",
|
||||
"nameserver": "",
|
||||
"network": [
|
||||
{
|
||||
"bridge": "vmbr0",
|
||||
"firewall": false,
|
||||
"link_down": false,
|
||||
"macaddr": "0A:FE:8F:84:55:C3",
|
||||
"macaddr": "DA:49:43:D2:C4:45",
|
||||
"model": "virtio",
|
||||
"mtu": 0,
|
||||
"queues": 0,
|
||||
@ -200,7 +354,7 @@
|
||||
{
|
||||
"schema_version": 3,
|
||||
"attributes": {
|
||||
"bcrypt_hash": "$2a$10$oYJ7Dy9JjkZw64Z3qrLk6.pTP41wEzi2e892x0RFVMrYgUgS2CO6K",
|
||||
"bcrypt_hash": "$2a$10$ApnWMlRbApaaSFtV7ZhZauWK9D9sRTmpr14KlD7WvkTmGPIFiQnYG",
|
||||
"id": "none",
|
||||
"keepers": null,
|
||||
"length": 16,
|
||||
@ -212,7 +366,7 @@
|
||||
"number": true,
|
||||
"numeric": true,
|
||||
"override_special": "!#$%\u0026*()-_=+[]{}\u003c\u003e:?",
|
||||
"result": "7=+LNuFPaXFJWWi-",
|
||||
"result": "gl8!8V45vl])x4*3",
|
||||
"special": true,
|
||||
"upper": true
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user