Merge pull request 'terraform apply' (#4) from stage into master
All checks were successful
Gitea Actions Demo / Terraform Apply (push) Successful in 1m51s
All checks were successful
Gitea Actions Demo / Terraform Apply (push) Successful in 1m51s
Reviewed-on: #4
This commit is contained in:
commit
a0ee1b8a4b
@ -17,13 +17,15 @@ provider "proxmox" {
|
||||
resource "proxmox_vm_qemu" "alpacas" {
|
||||
count = var.alpaca_count
|
||||
vmid = 500 + count.index + 1
|
||||
os_type = "cloud-init"
|
||||
name = "alpaca-${count.index + 1}"
|
||||
target_node = var.target_node
|
||||
clone = var.clone_template
|
||||
sockets = var.sockets
|
||||
cores = var.cores
|
||||
memory = var.memory
|
||||
agent = 1
|
||||
scsihw = "virtio-scsi-pci"
|
||||
agent = 0
|
||||
boot = "order=scsi0"
|
||||
|
||||
disk {
|
||||
@ -43,13 +45,15 @@ resource "proxmox_vm_qemu" "alpacas" {
|
||||
resource "proxmox_vm_qemu" "llamas" {
|
||||
count = var.llama_count
|
||||
vmid = 600 + count.index + 1
|
||||
os_type = "cloud-init"
|
||||
name = "llama-${count.index + 1}"
|
||||
target_node = var.target_node
|
||||
clone = var.clone_template
|
||||
sockets = var.sockets
|
||||
cores = var.cores
|
||||
memory = var.memory
|
||||
agent = 1
|
||||
scsihw = "virtio-scsi-pci"
|
||||
agent = 0
|
||||
boot = "order=scsi0"
|
||||
|
||||
disk {
|
||||
|
@ -1,7 +1,7 @@
|
||||
{
|
||||
"version": 4,
|
||||
"terraform_version": "1.11.4",
|
||||
"serial": 25,
|
||||
"serial": 31,
|
||||
"lineage": "7a39dd41-1655-172c-950b-b8c5398caf69",
|
||||
"outputs": {},
|
||||
"resources": [],
|
||||
|
@ -1,12 +1,23 @@
|
||||
{
|
||||
"version": 4,
|
||||
"terraform_version": "1.11.4",
|
||||
"serial": 23,
|
||||
"serial": 28,
|
||||
"lineage": "7a39dd41-1655-172c-950b-b8c5398caf69",
|
||||
"outputs": {
|
||||
"vm_clones": {
|
||||
"alpaca_vm_ids": {
|
||||
"value": {
|
||||
"alpaca-1": 501
|
||||
},
|
||||
"type": [
|
||||
"object",
|
||||
{
|
||||
"alpaca-1": "number"
|
||||
}
|
||||
]
|
||||
},
|
||||
"alpaca_vm_names": {
|
||||
"value": [
|
||||
"Alpine-Template"
|
||||
"alpaca-1"
|
||||
],
|
||||
"type": [
|
||||
"tuple",
|
||||
@ -15,20 +26,20 @@
|
||||
]
|
||||
]
|
||||
},
|
||||
"vm_ids": {
|
||||
"llama_vm_ids": {
|
||||
"value": {
|
||||
"Alpine-1": 400
|
||||
"llama-1": 601
|
||||
},
|
||||
"type": [
|
||||
"object",
|
||||
{
|
||||
"Alpine-1": "number"
|
||||
"llama-1": "number"
|
||||
}
|
||||
]
|
||||
},
|
||||
"vm_names": {
|
||||
"llama_vm_names": {
|
||||
"value": [
|
||||
"Alpine-1"
|
||||
"llama-1"
|
||||
],
|
||||
"type": [
|
||||
"tuple",
|
||||
@ -42,7 +53,7 @@
|
||||
{
|
||||
"mode": "managed",
|
||||
"type": "proxmox_vm_qemu",
|
||||
"name": "alpine",
|
||||
"name": "alpacas",
|
||||
"provider": "provider[\"registry.terraform.io/telmate/proxmox\"]",
|
||||
"instances": [
|
||||
{
|
||||
@ -117,7 +128,7 @@
|
||||
"hastate": "",
|
||||
"hostpci": [],
|
||||
"hotplug": "network,disk,usb",
|
||||
"id": "flex/qemu/400",
|
||||
"id": "flex/qemu/501",
|
||||
"ipconfig0": null,
|
||||
"ipconfig1": null,
|
||||
"ipconfig10": null,
|
||||
@ -138,7 +149,7 @@
|
||||
"linked_vmid": 0,
|
||||
"machine": "",
|
||||
"memory": 2048,
|
||||
"name": "Alpine-1",
|
||||
"name": "alpaca-1",
|
||||
"nameserver": null,
|
||||
"network": [
|
||||
{
|
||||
@ -146,7 +157,7 @@
|
||||
"firewall": false,
|
||||
"id": 0,
|
||||
"link_down": false,
|
||||
"macaddr": "bc:24:11:42:6e:29",
|
||||
"macaddr": "bc:24:11:9a:b0:73",
|
||||
"model": "virtio",
|
||||
"mtu": 0,
|
||||
"queues": 0,
|
||||
@ -177,7 +188,7 @@
|
||||
"product": "",
|
||||
"serial": "",
|
||||
"sku": "",
|
||||
"uuid": "7e462704-9013-4e96-9652-37e66a7cdf5f",
|
||||
"uuid": "9bb69618-0076-490d-95fe-c762e09d5326",
|
||||
"version": ""
|
||||
}
|
||||
],
|
||||
@ -201,7 +212,189 @@
|
||||
"vcpus": 0,
|
||||
"vga": [],
|
||||
"vm_state": "running",
|
||||
"vmid": 400
|
||||
"vmid": 501
|
||||
},
|
||||
"sensitive_attributes": [
|
||||
[
|
||||
{
|
||||
"type": "get_attr",
|
||||
"value": "ssh_private_key"
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"type": "get_attr",
|
||||
"value": "cipassword"
|
||||
}
|
||||
]
|
||||
],
|
||||
"private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjoxMjAwMDAwMDAwMDAwLCJkZWZhdWx0IjoxMjAwMDAwMDAwMDAwLCJkZWxldGUiOjEyMDAwMDAwMDAwMDAsInJlYWQiOjEyMDAwMDAwMDAwMDAsInVwZGF0ZSI6MTIwMDAwMDAwMDAwMH19"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"mode": "managed",
|
||||
"type": "proxmox_vm_qemu",
|
||||
"name": "llamas",
|
||||
"provider": "provider[\"registry.terraform.io/telmate/proxmox\"]",
|
||||
"instances": [
|
||||
{
|
||||
"index_key": 0,
|
||||
"schema_version": 0,
|
||||
"attributes": {
|
||||
"additional_wait": 5,
|
||||
"agent": 1,
|
||||
"agent_timeout": 90,
|
||||
"args": "",
|
||||
"automatic_reboot": true,
|
||||
"balloon": 0,
|
||||
"bios": "seabios",
|
||||
"boot": "order=scsi0",
|
||||
"bootdisk": "",
|
||||
"ci_wait": null,
|
||||
"cicustom": null,
|
||||
"cipassword": "",
|
||||
"ciupgrade": false,
|
||||
"ciuser": "",
|
||||
"clone": "Alpine-Template",
|
||||
"clone_id": null,
|
||||
"clone_wait": 10,
|
||||
"cores": 2,
|
||||
"cpu": null,
|
||||
"cpu_type": "host",
|
||||
"current_node": "flex",
|
||||
"default_ipv4_address": "",
|
||||
"default_ipv6_address": "",
|
||||
"define_connection_info": true,
|
||||
"desc": "Managed by Terraform.",
|
||||
"disk": [
|
||||
{
|
||||
"asyncio": "",
|
||||
"backup": true,
|
||||
"cache": "",
|
||||
"discard": false,
|
||||
"disk_file": "",
|
||||
"emulatessd": false,
|
||||
"format": "raw",
|
||||
"id": 0,
|
||||
"iops_r_burst": 0,
|
||||
"iops_r_burst_length": 0,
|
||||
"iops_r_concurrent": 0,
|
||||
"iops_wr_burst": 0,
|
||||
"iops_wr_burst_length": 0,
|
||||
"iops_wr_concurrent": 0,
|
||||
"iothread": false,
|
||||
"iso": "",
|
||||
"linked_disk_id": -1,
|
||||
"mbps_r_burst": 0,
|
||||
"mbps_r_concurrent": 0,
|
||||
"mbps_wr_burst": 0,
|
||||
"mbps_wr_concurrent": 0,
|
||||
"passthrough": false,
|
||||
"readonly": false,
|
||||
"replicate": false,
|
||||
"serial": "",
|
||||
"size": "15G",
|
||||
"slot": "scsi0",
|
||||
"storage": "Flash",
|
||||
"type": "disk",
|
||||
"wwn": ""
|
||||
}
|
||||
],
|
||||
"disks": [],
|
||||
"efidisk": [],
|
||||
"force_create": false,
|
||||
"force_recreate_on_change_of": null,
|
||||
"full_clone": true,
|
||||
"hagroup": "",
|
||||
"hastate": "",
|
||||
"hostpci": [],
|
||||
"hotplug": "network,disk,usb",
|
||||
"id": "flex/qemu/601",
|
||||
"ipconfig0": null,
|
||||
"ipconfig1": null,
|
||||
"ipconfig10": null,
|
||||
"ipconfig11": null,
|
||||
"ipconfig12": null,
|
||||
"ipconfig13": null,
|
||||
"ipconfig14": null,
|
||||
"ipconfig15": null,
|
||||
"ipconfig2": null,
|
||||
"ipconfig3": null,
|
||||
"ipconfig4": null,
|
||||
"ipconfig5": null,
|
||||
"ipconfig6": null,
|
||||
"ipconfig7": null,
|
||||
"ipconfig8": null,
|
||||
"ipconfig9": null,
|
||||
"kvm": true,
|
||||
"linked_vmid": 0,
|
||||
"machine": "",
|
||||
"memory": 2048,
|
||||
"name": "llama-1",
|
||||
"nameserver": null,
|
||||
"network": [
|
||||
{
|
||||
"bridge": "vmbr0",
|
||||
"firewall": false,
|
||||
"id": 0,
|
||||
"link_down": false,
|
||||
"macaddr": "bc:24:11:16:44:6b",
|
||||
"model": "virtio",
|
||||
"mtu": 0,
|
||||
"queues": 0,
|
||||
"rate": 0,
|
||||
"tag": 0
|
||||
}
|
||||
],
|
||||
"numa": false,
|
||||
"onboot": false,
|
||||
"os_network_config": null,
|
||||
"os_type": "cloud-init",
|
||||
"pci": [],
|
||||
"pcis": [],
|
||||
"pool": "",
|
||||
"protection": false,
|
||||
"pxe": null,
|
||||
"qemu_os": "l26",
|
||||
"reboot_required": false,
|
||||
"scsihw": "lsi",
|
||||
"searchdomain": null,
|
||||
"serial": [],
|
||||
"skip_ipv4": false,
|
||||
"skip_ipv6": false,
|
||||
"smbios": [
|
||||
{
|
||||
"family": "",
|
||||
"manufacturer": "",
|
||||
"product": "",
|
||||
"serial": "",
|
||||
"sku": "",
|
||||
"uuid": "99429525-6c01-4278-83cc-f6ebdb348577",
|
||||
"version": ""
|
||||
}
|
||||
],
|
||||
"sockets": 1,
|
||||
"ssh_forward_ip": null,
|
||||
"ssh_host": "",
|
||||
"ssh_port": "22",
|
||||
"ssh_private_key": null,
|
||||
"ssh_user": null,
|
||||
"sshkeys": null,
|
||||
"startup": "",
|
||||
"tablet": true,
|
||||
"tags": "",
|
||||
"target_node": "flex",
|
||||
"target_nodes": null,
|
||||
"timeouts": null,
|
||||
"tpm_state": [],
|
||||
"unused_disk": [],
|
||||
"usb": [],
|
||||
"usbs": [],
|
||||
"vcpus": 0,
|
||||
"vga": [],
|
||||
"vm_state": "running",
|
||||
"vmid": 601
|
||||
},
|
||||
"sensitive_attributes": [
|
||||
[
|
||||
|
Loading…
x
Reference in New Issue
Block a user