{ "version": 4, "terraform_version": "1.3.2", "serial": 202, "lineage": "a6fc0daf-c775-a473-062d-9e8d010efa11", "outputs": { "debian_ip": { "value": "192.168.122.218", "type": "string" }, "ubuntu_ip": { "value": "192.168.122.160", "type": "string" } }, "resources": [ { "mode": "data", "type": "template_file", "name": "network_config", "provider": "provider[\"registry.terraform.io/hashicorp/template\"]", "instances": [ { "schema_version": 0, "attributes": { "filename": null, "id": "b36a1372ce4ea68b514354202c26c0365df9a17f25cd5acdeeaea525cd913edc", "rendered": "version: 2\nethernets:\n ens3:\n dhcp4: true\n", "template": "version: 2\nethernets:\n ens3:\n dhcp4: true\n", "vars": null }, "sensitive_attributes": [] } ] }, { "mode": "data", "type": "template_file", "name": "user_data", "provider": "provider[\"registry.terraform.io/hashicorp/template\"]", "instances": [ { "schema_version": 0, "attributes": { "filename": null, "id": "cfd52fa0a19d9f79f950972494b7d3c43c479e01aa0535088b5a4b1503c15be3", "rendered": "#cloud-config\n# vim: syntax=yaml\n#\n# ***********************\n# \t---- for more examples look at: ------\n# ---\u003e https://cloudinit.readthedocs.io/en/latest/topics/examples.html\n# ******************************\n#\n# This is the configuration syntax that the write_files module\n# will know how to understand. encoding can be given b64 or gzip or (gz+b64).\n# The content will be decoded accordingly and then written to the path that is\n# provided.\n#\n# Note: Content strings here are truncated for example purposes.\n#users:\n# - default\n## - name: root\n####\tplain_text_passwd: foobar12\n##\tssh_import_id:\n##\t\t- gh:realaravinth\n# - name: atm\n#\tplain_text_passwd: foobar12\n#\tgecos: Aravinth Manivannan\n#\tgroups: users, admin\n#\tsudo: ALL=(ALL) NOPASSWD:ALL\n#\tlock_password: false\n#\tssh_import_id:\n#\t\t- gh:realaravinth\n\n\n\nusers:\n- name: root\n ssh_authorized_keys: \n - ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQC/wXdHpwpY/4ubhYTmuNdGepQpj1kchvTUTApxMZyfyVW4uzrPRTYsle1y9QbTBV35qLkNajRC/wmC5/xPchdXpsJpuD9st1HMhLeR8qwaPyptiYJYT+z/WisWw2k6oWhG3QKvPoRtBdW9nhZnkG+O6zkuGXiRHpS7j2VVboDPpWEe1UdELQFVCwfraRal2g3ENFZ/9V1UrW/4ahRnQnSxERplZUm/fgSxQtmXubTkW68ut7yasBsrKFffMm8JztW0tWgTlTKONd3LCjv4juM0t5+cJDotNDnUR86Tq2PG8io7no/h8BWtazmjdpfGgn02ibX26BkdU0LDEYbJt5q9/Fh9TGk2ZwcMQeyepO1AWQgkmHXZWZELqu6MLQpqdtsOjHp9k0MeSpuIbdwzgf10Ydy7vK1z8irS24tVNNnJaMBwOlVOPwfyztHRADPkFcv2lKSjS1uyKR0FIkV8Kvs4txaIjmwv2LfMg6lF5W6j3ZPLyeE4cplJP0DDjzorSanu31xVnqVb3A8V9awsJ/4H7d59bI99c7QHL4K3fBVP3O0gqd31xAVRsdGs5Tj2P+RpiI6o5JJiOa1+DuBdWzrVIXYchQ30ZjaJp1wTNsYLmAsjeYuQZE2tf1xvywdzD4MB4avugDEWikzRWN9V5PHDZr1bamTCCjOrb2PRCd7eSQ== aravinth7820@gmail.com\n- name: atm\n gecos: Aravinth Manivannan\n groups: users, admin\n sudo: ALL=(ALL) NOPASSWD:ALL\n shell: /bin/bash\n lock_passwd: true\n plain_text_passwd: fooabr12\n ssh_authorized_keys: \n - ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQC/wXdHpwpY/4ubhYTmuNdGepQpj1kchvTUTApxMZyfyVW4uzrPRTYsle1y9QbTBV35qLkNajRC/wmC5/xPchdXpsJpuD9st1HMhLeR8qwaPyptiYJYT+z/WisWw2k6oWhG3QKvPoRtBdW9nhZnkG+O6zkuGXiRHpS7j2VVboDPpWEe1UdELQFVCwfraRal2g3ENFZ/9V1UrW/4ahRnQnSxERplZUm/fgSxQtmXubTkW68ut7yasBsrKFffMm8JztW0tWgTlTKONd3LCjv4juM0t5+cJDotNDnUR86Tq2PG8io7no/h8BWtazmjdpfGgn02ibX26BkdU0LDEYbJt5q9/Fh9TGk2ZwcMQeyepO1AWQgkmHXZWZELqu6MLQpqdtsOjHp9k0MeSpuIbdwzgf10Ydy7vK1z8irS24tVNNnJaMBwOlVOPwfyztHRADPkFcv2lKSjS1uyKR0FIkV8Kvs4txaIjmwv2LfMg6lF5W6j3ZPLyeE4cplJP0DDjzorSanu31xVnqVb3A8V9awsJ/4H7d59bI99c7QHL4K3fBVP3O0gqd31xAVRsdGs5Tj2P+RpiI6o5JJiOa1+DuBdWzrVIXYchQ30ZjaJp1wTNsYLmAsjeYuQZE2tf1xvywdzD4MB4avugDEWikzRWN9V5PHDZr1bamTCCjOrb2PRCd7eSQ== aravinth7820@gmail.com\n\nssh_pwauth: true\nchpasswd:\n list: |\n root:foobar12\n atm:foobar12\n expire: False\n", "template": "#cloud-config\n# vim: syntax=yaml\n#\n# ***********************\n# \t---- for more examples look at: ------\n# ---\u003e https://cloudinit.readthedocs.io/en/latest/topics/examples.html\n# ******************************\n#\n# This is the configuration syntax that the write_files module\n# will know how to understand. encoding can be given b64 or gzip or (gz+b64).\n# The content will be decoded accordingly and then written to the path that is\n# provided.\n#\n# Note: Content strings here are truncated for example purposes.\n#users:\n# - default\n## - name: root\n####\tplain_text_passwd: foobar12\n##\tssh_import_id:\n##\t\t- gh:realaravinth\n# - name: atm\n#\tplain_text_passwd: foobar12\n#\tgecos: Aravinth Manivannan\n#\tgroups: users, admin\n#\tsudo: ALL=(ALL) NOPASSWD:ALL\n#\tlock_password: false\n#\tssh_import_id:\n#\t\t- gh:realaravinth\n\n\n\nusers:\n- name: root\n ssh_authorized_keys: \n - ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQC/wXdHpwpY/4ubhYTmuNdGepQpj1kchvTUTApxMZyfyVW4uzrPRTYsle1y9QbTBV35qLkNajRC/wmC5/xPchdXpsJpuD9st1HMhLeR8qwaPyptiYJYT+z/WisWw2k6oWhG3QKvPoRtBdW9nhZnkG+O6zkuGXiRHpS7j2VVboDPpWEe1UdELQFVCwfraRal2g3ENFZ/9V1UrW/4ahRnQnSxERplZUm/fgSxQtmXubTkW68ut7yasBsrKFffMm8JztW0tWgTlTKONd3LCjv4juM0t5+cJDotNDnUR86Tq2PG8io7no/h8BWtazmjdpfGgn02ibX26BkdU0LDEYbJt5q9/Fh9TGk2ZwcMQeyepO1AWQgkmHXZWZELqu6MLQpqdtsOjHp9k0MeSpuIbdwzgf10Ydy7vK1z8irS24tVNNnJaMBwOlVOPwfyztHRADPkFcv2lKSjS1uyKR0FIkV8Kvs4txaIjmwv2LfMg6lF5W6j3ZPLyeE4cplJP0DDjzorSanu31xVnqVb3A8V9awsJ/4H7d59bI99c7QHL4K3fBVP3O0gqd31xAVRsdGs5Tj2P+RpiI6o5JJiOa1+DuBdWzrVIXYchQ30ZjaJp1wTNsYLmAsjeYuQZE2tf1xvywdzD4MB4avugDEWikzRWN9V5PHDZr1bamTCCjOrb2PRCd7eSQ== aravinth7820@gmail.com\n- name: atm\n gecos: Aravinth Manivannan\n groups: users, admin\n sudo: ALL=(ALL) NOPASSWD:ALL\n shell: /bin/bash\n lock_passwd: true\n plain_text_passwd: fooabr12\n ssh_authorized_keys: \n - ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQC/wXdHpwpY/4ubhYTmuNdGepQpj1kchvTUTApxMZyfyVW4uzrPRTYsle1y9QbTBV35qLkNajRC/wmC5/xPchdXpsJpuD9st1HMhLeR8qwaPyptiYJYT+z/WisWw2k6oWhG3QKvPoRtBdW9nhZnkG+O6zkuGXiRHpS7j2VVboDPpWEe1UdELQFVCwfraRal2g3ENFZ/9V1UrW/4ahRnQnSxERplZUm/fgSxQtmXubTkW68ut7yasBsrKFffMm8JztW0tWgTlTKONd3LCjv4juM0t5+cJDotNDnUR86Tq2PG8io7no/h8BWtazmjdpfGgn02ibX26BkdU0LDEYbJt5q9/Fh9TGk2ZwcMQeyepO1AWQgkmHXZWZELqu6MLQpqdtsOjHp9k0MeSpuIbdwzgf10Ydy7vK1z8irS24tVNNnJaMBwOlVOPwfyztHRADPkFcv2lKSjS1uyKR0FIkV8Kvs4txaIjmwv2LfMg6lF5W6j3ZPLyeE4cplJP0DDjzorSanu31xVnqVb3A8V9awsJ/4H7d59bI99c7QHL4K3fBVP3O0gqd31xAVRsdGs5Tj2P+RpiI6o5JJiOa1+DuBdWzrVIXYchQ30ZjaJp1wTNsYLmAsjeYuQZE2tf1xvywdzD4MB4avugDEWikzRWN9V5PHDZr1bamTCCjOrb2PRCd7eSQ== aravinth7820@gmail.com\n\nssh_pwauth: true\nchpasswd:\n list: |\n root:foobar12\n atm:foobar12\n expire: False\n", "vars": null }, "sensitive_attributes": [] } ] }, { "mode": "managed", "type": "libvirt_cloudinit_disk", "name": "commoninit", "provider": "provider[\"registry.terraform.io/dmacvicar/libvirt\"]", "instances": [ { "schema_version": 0, "attributes": { "id": "/tmp/terraform-provider-libvirt-pool-ubuntu/commoninit.iso;8eb942e9-315e-40f4-bc9a-d0c31618b101", "meta_data": "", "name": "commoninit.iso", "network_config": "version: 2\nethernets:\n ens3:\n dhcp4: true\n", "pool": "ubuntu", "user_data": "#cloud-config\n# vim: syntax=yaml\n#\n# ***********************\n# \t---- for more examples look at: ------\n# ---\u003e https://cloudinit.readthedocs.io/en/latest/topics/examples.html\n# ******************************\n#\n# This is the configuration syntax that the write_files module\n# will know how to understand. encoding can be given b64 or gzip or (gz+b64).\n# The content will be decoded accordingly and then written to the path that is\n# provided.\n#\n# Note: Content strings here are truncated for example purposes.\n#users:\n# - default\n## - name: root\n####\tplain_text_passwd: foobar12\n##\tssh_import_id:\n##\t\t- gh:realaravinth\n# - name: atm\n#\tplain_text_passwd: foobar12\n#\tgecos: Aravinth Manivannan\n#\tgroups: users, admin\n#\tsudo: ALL=(ALL) NOPASSWD:ALL\n#\tlock_password: false\n#\tssh_import_id:\n#\t\t- gh:realaravinth\n\n\n\nusers:\n- name: root\n ssh_authorized_keys: \n - ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQC/wXdHpwpY/4ubhYTmuNdGepQpj1kchvTUTApxMZyfyVW4uzrPRTYsle1y9QbTBV35qLkNajRC/wmC5/xPchdXpsJpuD9st1HMhLeR8qwaPyptiYJYT+z/WisWw2k6oWhG3QKvPoRtBdW9nhZnkG+O6zkuGXiRHpS7j2VVboDPpWEe1UdELQFVCwfraRal2g3ENFZ/9V1UrW/4ahRnQnSxERplZUm/fgSxQtmXubTkW68ut7yasBsrKFffMm8JztW0tWgTlTKONd3LCjv4juM0t5+cJDotNDnUR86Tq2PG8io7no/h8BWtazmjdpfGgn02ibX26BkdU0LDEYbJt5q9/Fh9TGk2ZwcMQeyepO1AWQgkmHXZWZELqu6MLQpqdtsOjHp9k0MeSpuIbdwzgf10Ydy7vK1z8irS24tVNNnJaMBwOlVOPwfyztHRADPkFcv2lKSjS1uyKR0FIkV8Kvs4txaIjmwv2LfMg6lF5W6j3ZPLyeE4cplJP0DDjzorSanu31xVnqVb3A8V9awsJ/4H7d59bI99c7QHL4K3fBVP3O0gqd31xAVRsdGs5Tj2P+RpiI6o5JJiOa1+DuBdWzrVIXYchQ30ZjaJp1wTNsYLmAsjeYuQZE2tf1xvywdzD4MB4avugDEWikzRWN9V5PHDZr1bamTCCjOrb2PRCd7eSQ== aravinth7820@gmail.com\n- name: atm\n gecos: Aravinth Manivannan\n groups: users, admin\n sudo: ALL=(ALL) NOPASSWD:ALL\n shell: /bin/bash\n lock_passwd: true\n plain_text_passwd: fooabr12\n ssh_authorized_keys: \n - ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQC/wXdHpwpY/4ubhYTmuNdGepQpj1kchvTUTApxMZyfyVW4uzrPRTYsle1y9QbTBV35qLkNajRC/wmC5/xPchdXpsJpuD9st1HMhLeR8qwaPyptiYJYT+z/WisWw2k6oWhG3QKvPoRtBdW9nhZnkG+O6zkuGXiRHpS7j2VVboDPpWEe1UdELQFVCwfraRal2g3ENFZ/9V1UrW/4ahRnQnSxERplZUm/fgSxQtmXubTkW68ut7yasBsrKFffMm8JztW0tWgTlTKONd3LCjv4juM0t5+cJDotNDnUR86Tq2PG8io7no/h8BWtazmjdpfGgn02ibX26BkdU0LDEYbJt5q9/Fh9TGk2ZwcMQeyepO1AWQgkmHXZWZELqu6MLQpqdtsOjHp9k0MeSpuIbdwzgf10Ydy7vK1z8irS24tVNNnJaMBwOlVOPwfyztHRADPkFcv2lKSjS1uyKR0FIkV8Kvs4txaIjmwv2LfMg6lF5W6j3ZPLyeE4cplJP0DDjzorSanu31xVnqVb3A8V9awsJ/4H7d59bI99c7QHL4K3fBVP3O0gqd31xAVRsdGs5Tj2P+RpiI6o5JJiOa1+DuBdWzrVIXYchQ30ZjaJp1wTNsYLmAsjeYuQZE2tf1xvywdzD4MB4avugDEWikzRWN9V5PHDZr1bamTCCjOrb2PRCd7eSQ== aravinth7820@gmail.com\n\nssh_pwauth: true\nchpasswd:\n list: |\n root:foobar12\n atm:foobar12\n expire: False\n" }, "sensitive_attributes": [], "private": "bnVsbA==", "dependencies": [ "data.template_file.network_config", "data.template_file.user_data", "libvirt_pool.ubuntu" ] } ] }, { "mode": "managed", "type": "libvirt_domain", "name": "domain-debian-ansible-playground", "provider": "provider[\"registry.terraform.io/dmacvicar/libvirt\"]", "instances": [ { "schema_version": 0, "attributes": { "arch": "x86_64", "autostart": false, "boot_device": [], "cloudinit": "/tmp/terraform-provider-libvirt-pool-ubuntu/commoninit.iso;8eb942e9-315e-40f4-bc9a-d0c31618b101", "cmdline": null, "console": [ { "source_host": "127.0.0.1", "source_path": "", "source_service": "0", "target_port": "0", "target_type": "serial", "type": "pty" }, { "source_host": "127.0.0.1", "source_path": "", "source_service": "0", "target_port": "1", "target_type": "virtio", "type": "pty" } ], "coreos_ignition": null, "cpu": [ { "mode": "custom" } ], "description": "", "disk": [ { "block_device": "", "file": "", "scsi": false, "url": "", "volume_id": "/tmp/terraform-provider-libvirt-pool-ubuntu/debian-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": "address", "type": "spice", "websocket": 0 } ], "id": "0fecd569-c5e6-4229-b672-254a7fe32421", "initrd": "", "kernel": "", "machine": "pc", "memory": 3000, "metadata": null, "name": "debian-ansible-playground-terraform", "network_interface": [ { "addresses": [ "192.168.122.218" ], "bridge": "", "hostname": "", "mac": "52:54:00:76:6C:F5", "macvtap": "", "network_id": "f50e127a-7413-4d45-80de-587b22da0aa6", "network_name": "default", "passthrough": "", "vepa": "", "wait_for_lease": true } ], "nvram": [], "qemu_agent": false, "running": true, "timeouts": null, "tpm": [], "vcpu": 4, "video": [], "xml": [] }, "sensitive_attributes": [], "private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjozMDAwMDAwMDAwMDB9fQ==", "dependencies": [ "data.template_file.network_config", "data.template_file.user_data", "libvirt_cloudinit_disk.commoninit", "libvirt_pool.ubuntu", "libvirt_volume.debian-qcow2" ] } ] }, { "mode": "managed", "type": "libvirt_domain", "name": "domain-ubuntu", "provider": "provider[\"registry.terraform.io/dmacvicar/libvirt\"]", "instances": [ { "schema_version": 0, "attributes": { "arch": "x86_64", "autostart": false, "boot_device": [], "cloudinit": "/tmp/terraform-provider-libvirt-pool-ubuntu/commoninit.iso;8eb942e9-315e-40f4-bc9a-d0c31618b101", "cmdline": null, "console": [ { "source_host": "127.0.0.1", "source_path": "", "source_service": "0", "target_port": "0", "target_type": "serial", "type": "pty" }, { "source_host": "127.0.0.1", "source_path": "", "source_service": "0", "target_port": "1", "target_type": "virtio", "type": "pty" } ], "coreos_ignition": null, "cpu": [ { "mode": "custom" } ], "description": "", "disk": [ { "block_device": "", "file": "", "scsi": false, "url": "", "volume_id": "/tmp/terraform-provider-libvirt-pool-ubuntu/ubuntu-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": "address", "type": "spice", "websocket": 0 } ], "id": "611b6e01-520c-4da8-9536-e943fd56653b", "initrd": "", "kernel": "", "machine": "pc", "memory": 512, "metadata": null, "name": "ubuntu-terraform", "network_interface": [ { "addresses": [ "192.168.122.160" ], "bridge": "", "hostname": "", "mac": "52:54:00:9A:58:4F", "macvtap": "", "network_id": "f50e127a-7413-4d45-80de-587b22da0aa6", "network_name": "default", "passthrough": "", "vepa": "", "wait_for_lease": true } ], "nvram": [], "qemu_agent": false, "running": true, "timeouts": null, "tpm": [], "vcpu": 1, "video": [], "xml": [] }, "sensitive_attributes": [], "private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjozMDAwMDAwMDAwMDB9fQ==", "dependencies": [ "data.template_file.network_config", "data.template_file.user_data", "libvirt_cloudinit_disk.commoninit", "libvirt_pool.ubuntu", "libvirt_volume.ubuntu-qcow2" ] } ] }, { "mode": "managed", "type": "libvirt_pool", "name": "ubuntu", "provider": "provider[\"registry.terraform.io/dmacvicar/libvirt\"]", "instances": [ { "schema_version": 0, "attributes": { "allocation": 3506176, "available": 11978280960, "capacity": 11981787136, "id": "ad588a0e-dd3a-4f8d-be7b-2072dffc8668", "name": "ubuntu", "path": "/tmp/terraform-provider-libvirt-pool-ubuntu", "type": "dir", "xml": [] }, "sensitive_attributes": [], "private": "bnVsbA==" } ] }, { "mode": "managed", "type": "libvirt_volume", "name": "debian-qcow2", "provider": "provider[\"registry.terraform.io/dmacvicar/libvirt\"]", "instances": [ { "schema_version": 0, "attributes": { "base_volume_id": null, "base_volume_name": null, "base_volume_pool": null, "format": "qcow2", "id": "/tmp/terraform-provider-libvirt-pool-ubuntu/debian-qcow2", "name": "debian-qcow2", "pool": "ubuntu", "size": 2147483648, "source": "https://cloud.debian.org/images/cloud/buster/latest/debian-10-genericcloud-amd64.qcow2", "xml": [] }, "sensitive_attributes": [], "private": "bnVsbA==", "dependencies": [ "libvirt_pool.ubuntu" ] } ] }, { "mode": "managed", "type": "libvirt_volume", "name": "ubuntu-qcow2", "provider": "provider[\"registry.terraform.io/dmacvicar/libvirt\"]", "instances": [ { "schema_version": 0, "attributes": { "base_volume_id": null, "base_volume_name": null, "base_volume_pool": null, "format": "qcow2", "id": "/tmp/terraform-provider-libvirt-pool-ubuntu/ubuntu-qcow2", "name": "ubuntu-qcow2", "pool": "ubuntu", "size": 2361393152, "source": "https://cloud-images.ubuntu.com/releases/xenial/release/ubuntu-16.04-server-cloudimg-amd64-disk1.img", "xml": [] }, "sensitive_attributes": [], "private": "bnVsbA==", "dependencies": [ "libvirt_pool.ubuntu" ] } ] }, { "mode": "managed", "type": "local_file", "name": "hosts_yml", "provider": "provider[\"registry.terraform.io/hashicorp/local\"]", "instances": [ { "schema_version": 0, "attributes": { "content": "live:\n hosts:\n ubuntu:\n ansible_host: 192.168.122.160\n ansible_user: atm\n debian:\n ansible_host: 192.168.122.218\n ansible_user: atm\n", "content_base64": null, "directory_permission": "0777", "file_permission": "0777", "filename": "./ansible/inventory/hosts.yml", "id": "e90e3b1680ed947dc878c3dc00ace65ad63287ab", "sensitive_content": null, "source": null }, "sensitive_attributes": [], "private": "bnVsbA==", "dependencies": [ "data.template_file.network_config", "data.template_file.user_data", "libvirt_cloudinit_disk.commoninit", "libvirt_domain.domain-debian-ansible-playground", "libvirt_domain.domain-ubuntu", "libvirt_pool.ubuntu", "libvirt_volume.debian-qcow2", "libvirt_volume.ubuntu-qcow2" ] } ] } ], "check_results": [] }