From 440760a84ce6f256ab56246eaaa204e6553ec387 Mon Sep 17 00:00:00 2001 From: John O Loughlin Date: Fri, 16 Feb 2018 09:24:49 +0000 Subject: Add support for VNC to VMs created by ansible JIRA: YARDSTICK-1017 Change-Id: I76ca53c12a6791ecbf7f546f9074b16c5f6d215a Signed-off-by: John O Loughlin --- ansible/roles/infra_create_vms/tasks/configure_vm.yml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'ansible/roles/infra_create_vms') 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 }}" -- cgit 1.2.3-korg