Skip to content

Commit

Permalink
Merge pull request #7 from andreygubarev/feature-vm-disk
Browse files Browse the repository at this point in the history
feature vm disk size
  • Loading branch information
andreygubarev authored May 30, 2023
2 parents 313a56c + ff6be8e commit 59f3e7d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions molecule_qemu/playbooks/create.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
qemu_vm_image_format: "qcow2"
qemu_vm_memory: "1024"
qemu_vm_cpus: "2"
qemu_vm_disk: "4G"

tasks:
### configuration #########################################################
Expand All @@ -34,6 +35,7 @@

"vm_cpus": "{{ item.vm_cpus | default(qemu_vm_cpus) }}",
"vm_memory": "{{ item.vm_memory | default(qemu_vm_memory) }}",
"vm_disk": "{{ item.vm_disk | default(qemu_vm_disk) }}",

"path_disk": "{{ molecule_ephemeral_directory }}/run/{{ item.name }}.qcow2",
"path_pid": "{{ molecule_ephemeral_directory }}/run/{{ item.name }}.pid",
Expand Down Expand Up @@ -187,6 +189,7 @@
-f qcow2
-o backing_file={{ images_cache[item.image] }},backing_fmt={{ item.image_format }}
{{ item.path_disk }}
{{ item.vm_disk }}
args:
creates: "{{ item.path_disk }}"
loop: "{{ molecule_instances }}"
Expand Down

0 comments on commit 59f3e7d

Please sign in to comment.