diff --git a/.gitignore b/.gitignore index fe8d9cb..ab01664 100644 --- a/.gitignore +++ b/.gitignore @@ -2,7 +2,6 @@ **/.terraform/* # .tfstate files -*.tfstate *.tfstate.* **/.terraform.lock.hcl diff --git a/tofu/terraform.tfstate b/tofu/terraform.tfstate new file mode 100644 index 0000000..0e73d25 --- /dev/null +++ b/tofu/terraform.tfstate @@ -0,0 +1,488 @@ +{ + "version": 4, + "terraform_version": "1.6.1", + "serial": 25, + "lineage": "b243be8d-9ddb-6cc7-ca45-490768a6f007", + "outputs": {}, + "resources": [ + { + "module": "module.forgejo_vm", + "mode": "managed", + "type": "libvirt_domain", + "name": "service", + "provider": "provider[\"registry.opentofu.org/dmacvicar/libvirt\"]", + "instances": [ + { + "schema_version": 0, + "attributes": { + "arch": "x86_64", + "autostart": true, + "boot_device": [], + "cloudinit": null, + "cmdline": [], + "console": [ + { + "source_host": "127.0.0.1", + "source_path": "", + "source_service": "0", + "target_port": "0", + "target_type": "serial", + "type": "pty" + } + ], + "coreos_ignition": "/var/lib/libvirt/guest_images/forgejo-service.ign;1a8ff077-acc0-4484-a603-e6b35c9bf8bc", + "cpu": [ + { + "mode": "custom" + } + ], + "description": "", + "disk": [ + { + "block_device": "", + "file": "", + "scsi": false, + "url": "", + "volume_id": "/var/lib/libvirt/guest_images/forgejo-rootfs.qcow2", + "wwn": "" + }, + { + "block_device": "", + "file": "", + "scsi": false, + "url": "", + "volume_id": "/var/lib/libvirt/guest_images/forgejo-data.qcow2", + "wwn": "" + } + ], + "emulator": "/usr/bin/qemu-system-x86_64", + "filesystem": [], + "firmware": null, + "fw_cfg_name": "opt/com.coreos/config", + "graphics": [ + { + "autoport": true, + "listen_address": "127.0.0.1", + "listen_type": "none", + "type": "spice", + "websocket": 0 + } + ], + "id": "8b33de3b-c837-404d-bb04-017cba40137a", + "initrd": "", + "kernel": "", + "machine": "pc", + "memory": 4096, + "metadata": null, + "name": "forgejo", + "network_interface": [ + { + "addresses": [ + "10.117.3.110" + ], + "bridge": "", + "hostname": "forge.hklbgd.org", + "mac": "8A:41:86:11:16:83", + "macvtap": "", + "network_id": "c576f17a-69fa-49ea-ac92-2d0d49658eb3", + "network_name": "hklbgd-guests", + "passthrough": "", + "vepa": "", + "wait_for_lease": true + } + ], + "nvram": [], + "qemu_agent": false, + "running": true, + "timeouts": null, + "tpm": [], + "type": "kvm", + "vcpu": 2, + "video": [], + "xml": [] + }, + "sensitive_attributes": [], + "private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjozMDAwMDAwMDAwMDB9fQ==", + "dependencies": [ + "module.forgejo_vm.libvirt_ignition.ign", + "module.forgejo_vm.libvirt_volume.data", + "module.forgejo_vm.libvirt_volume.rootfs", + "module.network.libvirt_network.hklbgd", + "module.storage.libvirt_pool.hklbgd", + "module.storage.libvirt_volume.fcos" + ] + } + ] + }, + { + "module": "module.forgejo_vm", + "mode": "managed", + "type": "libvirt_ignition", + "name": "ign", + "provider": "provider[\"registry.opentofu.org/dmacvicar/libvirt\"]", + "instances": [ + { + "schema_version": 0, + "attributes": { + "content": "../ignition/forgejo/service.ign", + "id": "/var/lib/libvirt/guest_images/forgejo-service.ign;1a8ff077-acc0-4484-a603-e6b35c9bf8bc", + "name": "forgejo-service.ign", + "pool": "hklbgd-guests" + }, + "sensitive_attributes": [], + "private": "bnVsbA==", + "dependencies": [ + "module.storage.libvirt_pool.hklbgd" + ] + } + ] + }, + { + "module": "module.forgejo_vm", + "mode": "managed", + "type": "libvirt_volume", + "name": "data", + "provider": "provider[\"registry.opentofu.org/dmacvicar/libvirt\"]", + "instances": [ + { + "schema_version": 0, + "attributes": { + "base_volume_id": null, + "base_volume_name": null, + "base_volume_pool": null, + "format": "qcow2", + "id": "/var/lib/libvirt/guest_images/forgejo-data.qcow2", + "name": "forgejo-data.qcow2", + "pool": "hklbgd-guests", + "size": 322122547200, + "source": null, + "xml": [] + }, + "sensitive_attributes": [], + "private": "bnVsbA==", + "dependencies": [ + "module.storage.libvirt_pool.hklbgd" + ] + } + ] + }, + { + "module": "module.forgejo_vm", + "mode": "managed", + "type": "libvirt_volume", + "name": "rootfs", + "provider": "provider[\"registry.opentofu.org/dmacvicar/libvirt\"]", + "instances": [ + { + "schema_version": 0, + "attributes": { + "base_volume_id": "/var/lib/libvirt/guest_images/fedora-coreos-39.20240210.3.0-qemu.x86_64.qcow2", + "base_volume_name": null, + "base_volume_pool": null, + "format": "qcow2", + "id": "/var/lib/libvirt/guest_images/forgejo-rootfs.qcow2", + "name": "forgejo-rootfs.qcow2", + "pool": "hklbgd-guests", + "size": 10737418240, + "source": null, + "xml": [] + }, + "sensitive_attributes": [], + "private": "bnVsbA==", + "dependencies": [ + "module.storage.libvirt_pool.hklbgd", + "module.storage.libvirt_volume.fcos" + ] + } + ] + }, + { + "module": "module.kanidm_vm", + "mode": "managed", + "type": "libvirt_domain", + "name": "service", + "provider": "provider[\"registry.opentofu.org/dmacvicar/libvirt\"]", + "instances": [ + { + "schema_version": 0, + "attributes": { + "arch": "x86_64", + "autostart": true, + "boot_device": [], + "cloudinit": null, + "cmdline": [], + "console": [ + { + "source_host": "127.0.0.1", + "source_path": "", + "source_service": "0", + "target_port": "0", + "target_type": "serial", + "type": "pty" + } + ], + "coreos_ignition": "/var/lib/libvirt/guest_images/kanidm-service.ign;5d9fcd0e-47f7-4636-990b-ab40e48dabb0", + "cpu": [ + { + "mode": "custom" + } + ], + "description": "", + "disk": [ + { + "block_device": "", + "file": "", + "scsi": false, + "url": "", + "volume_id": "/var/lib/libvirt/guest_images/kanidm-rootfs.qcow2", + "wwn": "" + }, + { + "block_device": "", + "file": "", + "scsi": false, + "url": "", + "volume_id": "/var/lib/libvirt/guest_images/kanidm-data.qcow2", + "wwn": "" + } + ], + "emulator": "/usr/bin/qemu-system-x86_64", + "filesystem": [], + "firmware": null, + "fw_cfg_name": "opt/com.coreos/config", + "graphics": [ + { + "autoport": true, + "listen_address": "127.0.0.1", + "listen_type": "none", + "type": "spice", + "websocket": 0 + } + ], + "id": "3a9f8aec-d824-4acc-b0b4-f093c05319aa", + "initrd": "", + "kernel": "", + "machine": "pc", + "memory": 4096, + "metadata": null, + "name": "kanidm", + "network_interface": [ + { + "addresses": [ + "10.117.3.100" + ], + "bridge": "", + "hostname": "id.hklbgd.org", + "mac": "8A:41:86:95:40:35", + "macvtap": "", + "network_id": "c576f17a-69fa-49ea-ac92-2d0d49658eb3", + "network_name": "hklbgd-guests", + "passthrough": "", + "vepa": "", + "wait_for_lease": true + } + ], + "nvram": [], + "qemu_agent": false, + "running": true, + "timeouts": null, + "tpm": [], + "type": "kvm", + "vcpu": 2, + "video": [], + "xml": [] + }, + "sensitive_attributes": [], + "private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjozMDAwMDAwMDAwMDB9fQ==", + "dependencies": [ + "module.kanidm_vm.libvirt_ignition.ign", + "module.kanidm_vm.libvirt_volume.data", + "module.kanidm_vm.libvirt_volume.rootfs", + "module.network.libvirt_network.hklbgd", + "module.storage.libvirt_pool.hklbgd", + "module.storage.libvirt_volume.fcos" + ] + } + ] + }, + { + "module": "module.kanidm_vm", + "mode": "managed", + "type": "libvirt_ignition", + "name": "ign", + "provider": "provider[\"registry.opentofu.org/dmacvicar/libvirt\"]", + "instances": [ + { + "schema_version": 0, + "attributes": { + "content": "../ignition/kanidm/service.ign", + "id": "/var/lib/libvirt/guest_images/kanidm-service.ign;5d9fcd0e-47f7-4636-990b-ab40e48dabb0", + "name": "kanidm-service.ign", + "pool": "hklbgd-guests" + }, + "sensitive_attributes": [], + "private": "bnVsbA==", + "dependencies": [ + "module.storage.libvirt_pool.hklbgd" + ] + } + ] + }, + { + "module": "module.kanidm_vm", + "mode": "managed", + "type": "libvirt_volume", + "name": "data", + "provider": "provider[\"registry.opentofu.org/dmacvicar/libvirt\"]", + "instances": [ + { + "schema_version": 0, + "attributes": { + "base_volume_id": null, + "base_volume_name": null, + "base_volume_pool": null, + "format": "qcow2", + "id": "/var/lib/libvirt/guest_images/kanidm-data.qcow2", + "name": "kanidm-data.qcow2", + "pool": "hklbgd-guests", + "size": 322122547200, + "source": null, + "xml": [] + }, + "sensitive_attributes": [], + "private": "bnVsbA==", + "dependencies": [ + "module.storage.libvirt_pool.hklbgd" + ] + } + ] + }, + { + "module": "module.kanidm_vm", + "mode": "managed", + "type": "libvirt_volume", + "name": "rootfs", + "provider": "provider[\"registry.opentofu.org/dmacvicar/libvirt\"]", + "instances": [ + { + "schema_version": 0, + "attributes": { + "base_volume_id": "/var/lib/libvirt/guest_images/fedora-coreos-39.20240210.3.0-qemu.x86_64.qcow2", + "base_volume_name": null, + "base_volume_pool": null, + "format": "qcow2", + "id": "/var/lib/libvirt/guest_images/kanidm-rootfs.qcow2", + "name": "kanidm-rootfs.qcow2", + "pool": "hklbgd-guests", + "size": 10737418240, + "source": null, + "xml": [] + }, + "sensitive_attributes": [], + "private": "bnVsbA==", + "dependencies": [ + "module.storage.libvirt_pool.hklbgd", + "module.storage.libvirt_volume.fcos" + ] + } + ] + }, + { + "module": "module.network", + "mode": "managed", + "type": "libvirt_network", + "name": "hklbgd", + "provider": "provider[\"registry.opentofu.org/dmacvicar/libvirt\"]", + "instances": [ + { + "schema_version": 0, + "attributes": { + "addresses": [ + "10.117.3.0/24" + ], + "autostart": true, + "bridge": "virbr0", + "dhcp": [ + { + "enabled": true + } + ], + "dns": [ + { + "enabled": true, + "forwarders": [], + "hosts": [], + "local_only": true, + "srvs": [] + } + ], + "dnsmasq_options": [], + "domain": "hklbgd.org", + "id": "c576f17a-69fa-49ea-ac92-2d0d49658eb3", + "mode": "nat", + "mtu": null, + "name": "hklbgd-guests", + "routes": [], + "xml": [] + }, + "sensitive_attributes": [], + "private": "bnVsbA==" + } + ] + }, + { + "module": "module.storage", + "mode": "managed", + "type": "libvirt_pool", + "name": "hklbgd", + "provider": "provider[\"registry.opentofu.org/dmacvicar/libvirt\"]", + "instances": [ + { + "schema_version": 0, + "attributes": { + "allocation": 23498551296, + "available": 976216887296, + "capacity": 999715438592, + "id": "d35c2f76-476c-4d4e-8389-2d62484d36d1", + "name": "hklbgd-guests", + "path": "/var/lib/libvirt/guest_images", + "type": "dir", + "xml": [] + }, + "sensitive_attributes": [], + "private": "bnVsbA==" + } + ] + }, + { + "module": "module.storage", + "mode": "managed", + "type": "libvirt_volume", + "name": "fcos", + "provider": "provider[\"registry.opentofu.org/dmacvicar/libvirt\"]", + "instances": [ + { + "schema_version": 0, + "attributes": { + "base_volume_id": null, + "base_volume_name": null, + "base_volume_pool": null, + "format": "qcow2", + "id": "/var/lib/libvirt/guest_images/fedora-coreos-39.20240210.3.0-qemu.x86_64.qcow2", + "name": "fedora-coreos-39.20240210.3.0-qemu.x86_64.qcow2", + "pool": "hklbgd-guests", + "size": 10737418240, + "source": null, + "xml": [] + }, + "sensitive_attributes": [], + "private": "bnVsbA==", + "dependencies": [ + "module.storage.libvirt_pool.hklbgd" + ] + } + ] + } + ], + "check_results": null +}