Code Review
/
yardstick.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Merge "Allow VMs to access internet"
[yardstick.git]
/
ansible
/
roles
/
infra_create_vms
/
tasks
/
configure_vm.yml
diff --git
a/ansible/roles/infra_create_vms/tasks/configure_vm.yml
b/ansible/roles/infra_create_vms/tasks/configure_vm.yml
index
10201cf
..
7419fd5
100644
(file)
--- a/
ansible/roles/infra_create_vms/tasks/configure_vm.yml
+++ b/
ansible/roles/infra_create_vms/tasks/configure_vm.yml
@@
-305,7
+305,7
@@
- name: Populate network-config and add interface to xml file
include_tasks: create_interfaces.yml
- name: Populate network-config and add interface to xml file
include_tasks: create_interfaces.yml
- extra_vars: "{{ network_config
, xml_file , slot_address,
mac_address_counter }}"
+ extra_vars: "{{ network_config
xml_file slot_address
mac_address_counter }}"
loop_control:
loop_var: interface_item
with_items: "{{ node_item.interfaces }}"
loop_control:
loop_var: interface_item
with_items: "{{ node_item.interfaces }}"
@@
-326,9
+326,9
@@
shell: >
qemu-img convert -O qcow2 {{ node_item.image }} {{ image_dir+node_item.hostname+'.qcow2' }}
shell: >
qemu-img convert -O qcow2 {{ node_item.image }} {{ image_dir+node_item.hostname+'.qcow2' }}
-- name:
Copy and convert the ubuntu
image
+- name:
Resize
image
shell: >
shell: >
- qemu-img resize {{ image_dir+node_item.hostname+'.qcow2' }} {{ node_item.disk }}M
B
+ qemu-img resize {{ image_dir+node_item.hostname+'.qcow2' }} {{ node_item.disk }}M
- name: Define the VMs
virt:
- name: Define the VMs
virt: