summaryrefslogtreecommitdiffstats
path: root/ansible/roles/infra_create_vms
diff options
context:
space:
mode:
authorJohn O Loughlin <john.oloughlin@intel.com>2018-02-16 09:24:49 +0000
committerJohn O'Loughlin <john.oloughlin@intel.com>2018-03-12 10:13:04 +0000
commit440760a84ce6f256ab56246eaaa204e6553ec387 (patch)
treedd9a8fcce01db27874e7ea100fd63c7795c7fccc /ansible/roles/infra_create_vms
parent066a45edd22be0fa7dec8986b850d672a86ad0a3 (diff)
Add support for VNC to VMs created by ansible
JIRA: YARDSTICK-1017 Change-Id: I76ca53c12a6791ecbf7f546f9074b16c5f6d215a Signed-off-by: John O Loughlin <john.oloughlin@intel.com>
Diffstat (limited to 'ansible/roles/infra_create_vms')
-rw-r--r--ansible/roles/infra_create_vms/tasks/configure_vm.yml14
1 files changed, 14 insertions, 0 deletions
diff --git a/ansible/roles/infra_create_vms/tasks/configure_vm.yml b/ansible/roles/infra_create_vms/tasks/configure_vm.yml
index 7419fd565..c20a0b175 100644
--- a/ansible/roles/infra_create_vms/tasks/configure_vm.yml
+++ b/ansible/roles/infra_create_vms/tasks/configure_vm.yml
@@ -222,6 +222,10 @@
- console:
type: pty
tty: '/dev/pts/14'
+ - graphics:
+ type: vnc
+ port: '-1'
+ autoport: 'yes'
pretty_print: yes
- name: Add new children nodes to "disk" node
@@ -241,6 +245,16 @@
name: virtio-disk0
pretty_print: yes
+- name: Add new children nodes to "graphics" node
+ xml:
+ path: "{{ xml_file }}"
+ xpath: /domain/devices/graphics
+ add_children:
+ - listen:
+ type: address
+ address: 0.0.0.0
+ pretty_print: yes
+
- name: Add new children nodes to "devices" node
xml:
path: "{{ xml_file }}"