Page Menu
Home
Software Heritage
Search
Configure Global Search
Log In
Files
F9341717
D6906.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
6 KB
Subscribers
None
D6906.diff
View Options
diff --git a/proxmox/terraform/admin/admin.tf b/proxmox/terraform/admin/admin.tf
--- a/proxmox/terraform/admin/admin.tf
+++ b/proxmox/terraform/admin/admin.tf
@@ -56,3 +56,41 @@
bridge = local.config["vlan"]
}]
}
+
+
+module "dali" {
+ source = "../modules/node"
+ config = local.config
+
+ template = "debian-bullseye-11.2-2022-01-03"
+ hostname = "dali"
+ description = "admin databases host"
+ hypervisor = "branly"
+ vmid = 144
+ cores = "4"
+ memory = "16384"
+ balloon = 8192
+ networks = [{
+ id = 0
+ ip = "192.168.50.50"
+ gateway = local.config["gateway_ip"]
+ macaddr = "C2:7C:85:D0:E8:7C"
+ bridge = local.config["vlan"]
+ }]
+ storages = [
+ {
+ id = 0
+ storage = "proxmox"
+ size = "32G"
+ },
+ {
+ id = 1
+ storage = "proxmox"
+ size = "200G"
+ }
+ ]
+}
+
+output "dali_summary" {
+ value = module.dali.summary
+}
diff --git a/proxmox/terraform/admin/terraform.tfstate b/proxmox/terraform/admin/terraform.tfstate
--- a/proxmox/terraform/admin/terraform.tfstate
+++ b/proxmox/terraform/admin/terraform.tfstate
@@ -1,9 +1,14 @@
{
"version": 4,
- "terraform_version": "1.1.0",
- "serial": 16,
+ "terraform_version": "1.1.3",
+ "serial": 19,
"lineage": "7eeb2152-4139-2f8a-fd0a-ac63e5d93d90",
- "outputs": {},
+ "outputs": {
+ "dali_summary": {
+ "value": "\nhostname: dali\nfqdn: dali.internal.admin.swh.network\nnetwork: ip=192.168.50.50/24,gw=192.168.50.1 macaddrs=C2:7C:85:D0:E8:7C\n",
+ "type": "string"
+ }
+ },
"resources": [
{
"module": "module.bardo",
@@ -135,6 +140,152 @@
}
]
},
+ {
+ "module": "module.dali",
+ "mode": "managed",
+ "type": "proxmox_vm_qemu",
+ "name": "node",
+ "provider": "module.dali.provider[\"registry.terraform.io/telmate/proxmox\"]",
+ "instances": [
+ {
+ "schema_version": 0,
+ "attributes": {
+ "additional_wait": 0,
+ "agent": 0,
+ "args": "",
+ "balloon": 8192,
+ "bios": "seabios",
+ "boot": "c",
+ "bootdisk": "",
+ "bridge": "",
+ "ci_wait": null,
+ "cicustom": "",
+ "cipassword": "",
+ "ciuser": "root",
+ "clone": "debian-bullseye-11.2-2022-01-03",
+ "clone_wait": 0,
+ "cloudinit_cdrom_storage": null,
+ "cores": 4,
+ "cpu": "kvm64",
+ "default_ipv4_address": null,
+ "define_connection_info": true,
+ "desc": "admin databases host",
+ "disk": [
+ {
+ "backup": 0,
+ "cache": "none",
+ "discard": "",
+ "file": "base-10006-disk-0/vm-144-disk-0",
+ "format": "raw",
+ "iothread": 0,
+ "mbps": 0,
+ "mbps_rd": 0,
+ "mbps_rd_max": 0,
+ "mbps_wr": 0,
+ "mbps_wr_max": 0,
+ "media": "",
+ "replicate": 0,
+ "size": "32G",
+ "slot": 0,
+ "ssd": 0,
+ "storage": "proxmox",
+ "storage_type": "rbd",
+ "type": "virtio",
+ "volume": "proxmox:base-10006-disk-0/vm-144-disk-0"
+ },
+ {
+ "backup": 0,
+ "cache": "none",
+ "discard": "",
+ "file": "vm-144-disk-1",
+ "format": "raw",
+ "iothread": 0,
+ "mbps": 0,
+ "mbps_rd": 0,
+ "mbps_rd_max": 0,
+ "mbps_wr": 0,
+ "mbps_wr_max": 0,
+ "media": "",
+ "replicate": 0,
+ "size": "200G",
+ "slot": 1,
+ "ssd": 0,
+ "storage": "proxmox",
+ "storage_type": "rbd",
+ "type": "virtio",
+ "volume": "proxmox:vm-144-disk-1"
+ }
+ ],
+ "disk_gb": 0,
+ "force_create": false,
+ "force_recreate_on_change_of": null,
+ "full_clone": false,
+ "guest_agent_ready_timeout": 100,
+ "hagroup": "",
+ "hastate": "",
+ "hotplug": "network,disk,usb",
+ "id": "branly/qemu/144",
+ "ipconfig0": "ip=192.168.50.50/24,gw=192.168.50.1",
+ "ipconfig1": "",
+ "ipconfig2": "",
+ "ipconfig3": "",
+ "ipconfig4": "",
+ "ipconfig5": "",
+ "iso": null,
+ "kvm": true,
+ "mac": "",
+ "memory": 16384,
+ "name": "dali",
+ "nameserver": "192.168.100.29",
+ "network": [
+ {
+ "bridge": "vmbr442",
+ "firewall": false,
+ "link_down": false,
+ "macaddr": "C2:7C:85:D0:E8:7C",
+ "model": "virtio",
+ "queues": 0,
+ "rate": 0,
+ "tag": -1
+ }
+ ],
+ "nic": "",
+ "numa": false,
+ "onboot": true,
+ "oncreate": true,
+ "os_network_config": null,
+ "os_type": "cloud-init",
+ "pool": "",
+ "preprovision": true,
+ "qemu_os": "other",
+ "reboot_required": false,
+ "scsihw": "virtio-scsi-pci",
+ "searchdomain": "internal.admin.swh.network",
+ "serial": [],
+ "sockets": 1,
+ "ssh_forward_ip": null,
+ "ssh_host": null,
+ "ssh_port": null,
+ "ssh_private_key": null,
+ "ssh_user": "root",
+ "sshkeys": "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDVKCfpeIMg7GS3Pk03ZAcBWAeDZ+AvWk2k/pPY0z8MJ3YAbqZkRtSK7yaDgJV6Gro7nn/TxdJLo2jEzzWvlC8d8AEzhZPy5Z/qfVVjqBTBM4H5+e+TItAHFfaY5+0WvIahxcfsfaq70MWfpJhszAah3ThJ4mqzYaw+dkr42+a7Gx3Ygpb/m2dpnFnxvXdcuAJYStmHKU5AWGWWM+Fm50/fdMqUfNd8MbKhkJt5ihXQmZWMOt7ls4N8i5NZWnS9YSWow8X/ENOEqCRN9TyRkc+pPS0w9DNi0BCsWvSRJOkyvQ6caEnKWlNoywCmM1AlIQD3k4RUgRWe0vqg/UKPpH3Z root@terraform\n",
+ "storage": "",
+ "storage_type": "",
+ "tablet": true,
+ "tags": "",
+ "target_node": "branly",
+ "timeouts": null,
+ "unused_disk": [],
+ "vcpus": 0,
+ "vga": [],
+ "vlan": -1,
+ "vmid": 144
+ },
+ "sensitive_attributes": [],
+ "private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjozMDAwMDAwMDAwMDAsImRlZmF1bHQiOjMwMDAwMDAwMDAwMCwiZGVsZXRlIjoxODAwMDAwMDAwMDAsInJlYWQiOjE4MDAwMDAwMDAwMCwidXBkYXRlIjoxODAwMDAwMDAwMDB9fQ=="
+ }
+ ]
+ },
{
"module": "module.rp1",
"mode": "managed",
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Jul 3, 12:17 PM (2 w, 5 d ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3216548
Attached To
D6906: Bootstrap dali vm in admin network
Event Timeline
Log In to Comment