Skip to content

Commit

Permalink
Merge pull request #35 from andreygubarev/fix-raw-format-support
Browse files Browse the repository at this point in the history
Add `raw` format support
  • Loading branch information
andreygubarev authored Mar 3, 2024
2 parents 256bda4 + 40dce2a commit 802c93a
Showing 1 changed file with 98 additions and 121 deletions.
219 changes: 98 additions & 121 deletions molecule_qemu/driver.json
Original file line number Diff line number Diff line change
@@ -1,128 +1,105 @@
{
"$defs": {
"MoleculeDriverModel": {
"properties": {
"name": {
"enum": [
"molecule-qemu"
],
"title": "Name",
"type": "string"
}
},
"title": "MoleculeDriverModel",
"type": "object"
},
"MoleculePlatformModel": {
"additionalProperties": true,
"properties": {
"image_arch": {
"title": "Image Architecture",
"type": "string",
"enum": [
"x86_64",
"aarch64"
]
},
"image_url": {
"title": "Image URL",
"type": "string"
},
"image_checksum": {
"title": "Image Checksum",
"type": "string"
},
"image_format": {
"title": "Image Format",
"type": "string",
"enum": [
"qcow2"
]
},
"network_extra_args": {
"title": "Network Extra Arguments",
"type": "string"
},
"network_mode": {
"title": "Network Mode",
"type": "string",
"enum": [
"vmnet-shared",
"user"
]
},
"network_ssh_port": {
"title": "Network SSH Port",
"type": "integer"
},
"network_ssh_user": {
"title": "Network SSH User",
"type": "string"
},
"vm_extra_args": {
"title": "VM Extra Arguments",
"type": "string"
},
"vm_cpus": {
"title": "VM CPUs",
"type": "integer"
},
"vm_memory": {
"title": "VM Memory",
"type": "integer"
},
"vm_disk": {
"title": "VM Disk",
"type": "string"
},
"name": {
"title": "Name",
"type": "string"
},
"disk_type": {
"title": "Disk Type",
"type": "string",
"enum": [
"virtio",
"virtio-scsi"
]
},
"bios_type": {
"title": "Bios Type",
"type": "string",
"enum": [
"uefi",
"bios"
]
}
},
"required": [
"name",
"image_url",
"image_checksum"
],
"title": "MoleculePlatformModel",
"type": "object"
"$defs": {
"MoleculeDriverModel": {
"properties": {
"name": {
"enum": ["molecule-qemu"],
"title": "Name",
"type": "string"
}
},
"title": "MoleculeDriverModel",
"type": "object"
},
"$id": "https://github.com/andreygubarev/molecule-qemu/blob/main/molecule_qemu/driver.json",
"$schema": "http://json-schema.org/draft-07/schema",
"properties": {
"driver": {
"$ref": "#/$defs/MoleculeDriverModel"
"MoleculePlatformModel": {
"additionalProperties": true,
"properties": {
"image_arch": {
"title": "Image Architecture",
"type": "string",
"enum": ["x86_64", "aarch64"]
},
"image_url": {
"title": "Image URL",
"type": "string"
},
"image_checksum": {
"title": "Image Checksum",
"type": "string"
},
"image_format": {
"title": "Image Format",
"type": "string",
"enum": ["qcow2", "raw"]
},
"network_extra_args": {
"title": "Network Extra Arguments",
"type": "string"
},
"network_mode": {
"title": "Network Mode",
"type": "string",
"enum": ["vmnet-shared", "user"]
},
"network_ssh_port": {
"title": "Network SSH Port",
"type": "integer"
},
"network_ssh_user": {
"title": "Network SSH User",
"type": "string"
},
"vm_extra_args": {
"title": "VM Extra Arguments",
"type": "string"
},
"vm_cpus": {
"title": "VM CPUs",
"type": "integer"
},
"vm_memory": {
"title": "VM Memory",
"type": "integer"
},
"vm_disk": {
"title": "VM Disk",
"type": "string"
},
"name": {
"title": "Name",
"type": "string"
},
"disk_type": {
"title": "Disk Type",
"type": "string",
"enum": ["virtio", "virtio-scsi"]
},
"platforms": {
"items": {
"$ref": "#/$defs/MoleculePlatformModel"
},
"title": "Platforms",
"type": "array"
"bios_type": {
"title": "Bios Type",
"type": "string",
"enum": ["uefi", "bios"]
}
},
"required": ["name", "image_url", "image_checksum"],
"title": "MoleculePlatformModel",
"type": "object"
}
},
"$id": "https://github.com/andreygubarev/molecule-qemu/blob/main/molecule_qemu/driver.json",
"$schema": "http://json-schema.org/draft-07/schema",
"properties": {
"driver": {
"$ref": "#/$defs/MoleculeDriverModel"
},
"required": [
"driver",
"platforms"
],
"title": "Molecule QEMU Driver Schema",
"type": "object"
"platforms": {
"items": {
"$ref": "#/$defs/MoleculePlatformModel"
},
"title": "Platforms",
"type": "array"
}
},
"required": ["driver", "platforms"],
"title": "Molecule QEMU Driver Schema",
"type": "object"
}

0 comments on commit 802c93a

Please sign in to comment.