577 lines
26 KiB
JSON
577 lines
26 KiB
JSON
{
|
|
"version": 4,
|
|
"terraform_version": "1.5.2",
|
|
"serial": 41,
|
|
"lineage": "5b6bd2b1-13f8-d5a9-2078-2afd131c2172",
|
|
"outputs": {
|
|
"centos_ip": {
|
|
"value": [
|
|
{
|
|
"ip": "192.168.122.239",
|
|
"name": "centos_basic_0"
|
|
},
|
|
{
|
|
"ip": "192.168.122.185",
|
|
"name": "centos_basic_1"
|
|
},
|
|
{
|
|
"ip": "192.168.122.191",
|
|
"name": "centos_basic_2"
|
|
}
|
|
],
|
|
"type": [
|
|
"tuple",
|
|
[
|
|
[
|
|
"object",
|
|
{
|
|
"ip": "string",
|
|
"name": "string"
|
|
}
|
|
],
|
|
[
|
|
"object",
|
|
{
|
|
"ip": "string",
|
|
"name": "string"
|
|
}
|
|
],
|
|
[
|
|
"object",
|
|
{
|
|
"ip": "string",
|
|
"name": "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": "0803bce6fdae67bc50101596e1ce03ca05fc5c9cb1feecbb9ebd2780b84a2569",
|
|
"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": "/home/atm/code/libvirt/pool/centos_basic/commoninit.iso;81bd2817-7770-4c3e-ae4e-f6d1b9e0ff98",
|
|
"meta_data": "",
|
|
"name": "commoninit.iso",
|
|
"network_config": "version: 2\nethernets:\n ens3:\n dhcp4: true\n",
|
|
"pool": "centos_basic",
|
|
"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.centos_basic"
|
|
]
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"mode": "managed",
|
|
"type": "libvirt_domain",
|
|
"name": "domain_centos_basic",
|
|
"provider": "provider[\"registry.terraform.io/dmacvicar/libvirt\"]",
|
|
"instances": [
|
|
{
|
|
"index_key": 0,
|
|
"schema_version": 0,
|
|
"attributes": {
|
|
"arch": "x86_64",
|
|
"autostart": false,
|
|
"boot_device": [],
|
|
"cloudinit": "/home/atm/code/libvirt/pool/centos_basic/commoninit.iso;81bd2817-7770-4c3e-ae4e-f6d1b9e0ff98",
|
|
"cmdline": [],
|
|
"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": "/var/lib/libvirt/images/domain_centos_basic_volume-0",
|
|
"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": "2cc84e95-ebe9-4fd2-85dc-3988fb868abe",
|
|
"initrd": "",
|
|
"kernel": "",
|
|
"machine": "pc",
|
|
"memory": 3000,
|
|
"metadata": null,
|
|
"name": "centos_basic_0",
|
|
"network_interface": [
|
|
{
|
|
"addresses": [
|
|
"192.168.122.239"
|
|
],
|
|
"bridge": "",
|
|
"hostname": "centos_basic_0",
|
|
"mac": "52:54:00:72:72:06",
|
|
"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.centos_basic",
|
|
"libvirt_volume.centos8-qcow2",
|
|
"libvirt_volume.domain_centos_basic_volume"
|
|
]
|
|
},
|
|
{
|
|
"index_key": 1,
|
|
"schema_version": 0,
|
|
"attributes": {
|
|
"arch": "x86_64",
|
|
"autostart": false,
|
|
"boot_device": [],
|
|
"cloudinit": "/home/atm/code/libvirt/pool/centos_basic/commoninit.iso;81bd2817-7770-4c3e-ae4e-f6d1b9e0ff98",
|
|
"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": "/var/lib/libvirt/images/domain_centos_basic_volume-1",
|
|
"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": "82916b5b-9e45-440c-8cae-ecb8e68d987d",
|
|
"initrd": "",
|
|
"kernel": "",
|
|
"machine": "pc",
|
|
"memory": 3000,
|
|
"metadata": null,
|
|
"name": "centos_basic_1",
|
|
"network_interface": [
|
|
{
|
|
"addresses": [
|
|
"192.168.122.185"
|
|
],
|
|
"bridge": "",
|
|
"hostname": "",
|
|
"mac": "52:54:00:E6:DD:A3",
|
|
"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": [
|
|
"libvirt_cloudinit_disk.commoninit",
|
|
"libvirt_volume.centos8-qcow2",
|
|
"libvirt_volume.domain_centos_basic_volume"
|
|
]
|
|
},
|
|
{
|
|
"index_key": 2,
|
|
"schema_version": 0,
|
|
"attributes": {
|
|
"arch": "x86_64",
|
|
"autostart": false,
|
|
"boot_device": [],
|
|
"cloudinit": "/home/atm/code/libvirt/pool/centos_basic/commoninit.iso;81bd2817-7770-4c3e-ae4e-f6d1b9e0ff98",
|
|
"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": "/var/lib/libvirt/images/domain_centos_basic_volume-2",
|
|
"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": "c65a2eff-db15-48aa-bb09-ba77b179497e",
|
|
"initrd": "",
|
|
"kernel": "",
|
|
"machine": "pc",
|
|
"memory": 3000,
|
|
"metadata": null,
|
|
"name": "centos_basic_2",
|
|
"network_interface": [
|
|
{
|
|
"addresses": [
|
|
"192.168.122.191"
|
|
],
|
|
"bridge": "",
|
|
"hostname": "",
|
|
"mac": "52:54:00:D6:3F:59",
|
|
"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": [
|
|
"libvirt_cloudinit_disk.commoninit",
|
|
"libvirt_volume.centos8-qcow2",
|
|
"libvirt_volume.domain_centos_basic_volume"
|
|
]
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"mode": "managed",
|
|
"type": "libvirt_pool",
|
|
"name": "centos_basic",
|
|
"provider": "provider[\"registry.terraform.io/dmacvicar/libvirt\"]",
|
|
"instances": [
|
|
{
|
|
"schema_version": 0,
|
|
"attributes": {
|
|
"allocation": 889159327744,
|
|
"available": 94191812608,
|
|
"capacity": 983351140352,
|
|
"id": "d234b230-28f3-4b61-82b7-9a9da3a1ca5b",
|
|
"name": "centos_basic",
|
|
"path": "/home/atm/code/libvirt/pool/centos_basic",
|
|
"type": "dir",
|
|
"xml": []
|
|
},
|
|
"sensitive_attributes": [],
|
|
"private": "bnVsbA=="
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"mode": "managed",
|
|
"type": "libvirt_volume",
|
|
"name": "centos8-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": "/home/atm/code/libvirt/pool/centos_basic/centos8-qcow2",
|
|
"name": "centos8-qcow2",
|
|
"pool": "centos_basic",
|
|
"size": 10737418240,
|
|
"source": "/home/atm/disk-images/CentOS-8-ec2-8.4.2105-20210603.0.x86_64.qcow2",
|
|
"xml": []
|
|
},
|
|
"sensitive_attributes": [],
|
|
"private": "bnVsbA==",
|
|
"dependencies": [
|
|
"libvirt_pool.centos_basic"
|
|
]
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"mode": "managed",
|
|
"type": "libvirt_volume",
|
|
"name": "domain_centos_basic_volume",
|
|
"provider": "provider[\"registry.terraform.io/dmacvicar/libvirt\"]",
|
|
"instances": [
|
|
{
|
|
"index_key": 0,
|
|
"schema_version": 0,
|
|
"attributes": {
|
|
"base_volume_id": "/home/atm/code/libvirt/pool/centos_basic/centos8-qcow2",
|
|
"base_volume_name": null,
|
|
"base_volume_pool": null,
|
|
"format": "qcow2",
|
|
"id": "/var/lib/libvirt/images/domain_centos_basic_volume-0",
|
|
"name": "domain_centos_basic_volume-0",
|
|
"pool": "default",
|
|
"size": 85368709120,
|
|
"source": null,
|
|
"xml": []
|
|
},
|
|
"sensitive_attributes": [],
|
|
"private": "bnVsbA==",
|
|
"dependencies": [
|
|
"libvirt_pool.centos_basic",
|
|
"libvirt_volume.centos8-qcow2"
|
|
]
|
|
},
|
|
{
|
|
"index_key": 1,
|
|
"schema_version": 0,
|
|
"attributes": {
|
|
"base_volume_id": "/home/atm/code/libvirt/pool/centos_basic/centos8-qcow2",
|
|
"base_volume_name": null,
|
|
"base_volume_pool": null,
|
|
"format": "qcow2",
|
|
"id": "/var/lib/libvirt/images/domain_centos_basic_volume-1",
|
|
"name": "domain_centos_basic_volume-1",
|
|
"pool": "default",
|
|
"size": 85368709120,
|
|
"source": null,
|
|
"xml": []
|
|
},
|
|
"sensitive_attributes": [],
|
|
"private": "bnVsbA==",
|
|
"dependencies": [
|
|
"libvirt_volume.centos8-qcow2"
|
|
]
|
|
},
|
|
{
|
|
"index_key": 2,
|
|
"schema_version": 0,
|
|
"attributes": {
|
|
"base_volume_id": "/home/atm/code/libvirt/pool/centos_basic/centos8-qcow2",
|
|
"base_volume_name": null,
|
|
"base_volume_pool": null,
|
|
"format": "qcow2",
|
|
"id": "/var/lib/libvirt/images/domain_centos_basic_volume-2",
|
|
"name": "domain_centos_basic_volume-2",
|
|
"pool": "default",
|
|
"size": 85368709120,
|
|
"source": null,
|
|
"xml": []
|
|
},
|
|
"sensitive_attributes": [],
|
|
"private": "bnVsbA==",
|
|
"dependencies": [
|
|
"libvirt_volume.centos8-qcow2"
|
|
]
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"mode": "managed",
|
|
"type": "local_file",
|
|
"name": "hosts_yml",
|
|
"provider": "provider[\"registry.terraform.io/hashicorp/local\"]",
|
|
"instances": [
|
|
{
|
|
"schema_version": 0,
|
|
"attributes": {
|
|
"content": "[debainbasic]\ncentos_basic_0 ansible_host=192.168.122.239 ansible_user=root\ncentos_basic_1 ansible_host=192.168.122.185 ansible_user=root\ncentos_basic_2 ansible_host=192.168.122.191 ansible_user=root\n",
|
|
"content_base64": null,
|
|
"content_base64sha256": "3F+oxj0mR7KaESROkAICxWKkWmmtl2/L3PlXCyS5Cz4=",
|
|
"content_base64sha512": "UAtmCeBnmfeQ/t7fnfvzPyit90WdueObazO13njc9B7WaNI2yhweZNHKnM5ZEU55kxDNZ6uWPIwyTisrMoHoxg==",
|
|
"content_md5": "1c018bf6601b0881f69b3d30c770b4b2",
|
|
"content_sha1": "4eddd6cdd2f1234f1d7e9dddaa73703d9906d442",
|
|
"content_sha256": "dc5fa8c63d2647b29a11244e900202c562a45a69ad976fcbdcf9570b24b90b3e",
|
|
"content_sha512": "500b6609e06799f790fededf9dfbf33f28adf7459db9e39b6b33b5de78dcf41ed668d236ca1c1e64d1ca9cce59114e799310cd67ab963c8c324e2b2b3281e8c6",
|
|
"directory_permission": "0777",
|
|
"file_permission": "0777",
|
|
"filename": "./ansible/inventory/hosts.ini",
|
|
"id": "4eddd6cdd2f1234f1d7e9dddaa73703d9906d442",
|
|
"sensitive_content": null,
|
|
"source": null
|
|
},
|
|
"sensitive_attributes": [],
|
|
"dependencies": [
|
|
"libvirt_cloudinit_disk.commoninit",
|
|
"libvirt_domain.domain_centos_basic",
|
|
"libvirt_volume.centos8-qcow2",
|
|
"libvirt_volume.domain_centos_basic_volume"
|
|
]
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"check_results": null
|
|
}
|