Install spice-html5 from source

'ws://' is currently hardcoded within the spice_auto.html file included
in the packaged release of spice-html5, raising a security error when
accessing consoles over HTTPS.

Remove the existing apt package and install spice-html5 from source
instead since this issue has been corrected as of spice-html5-0.1.6.

Change-Id: Ie308a477143037963f903f2ac21b2b1f0328fcb3
Partial-Bug: #1424797
(cherry picked from commit a944d049fb)
This commit is contained in:
Jimmy McCrory 2015-09-22 10:46:48 -07:00 committed by Kevin Carter
parent f3f56a7af3
commit 391bdaad80
4 changed files with 29 additions and 4 deletions

View File

@ -35,3 +35,8 @@ tempest_git_dest: "/opt/tempest_{{ tempest_git_install_branch | replace('/', '_'
novncproxy_git_repo: https://github.com/kanaka/novnc
novncproxy_git_install_branch: a0e7ab43dca0ce11a713694ee4cf530bd3b17c5a
novncproxy_git_dest: "/opt/novnc_{{ novncproxy_git_install_branch | replace('/', '_') }}"
# spice-html5 from source
spicehtml5_git_repo: https://github.com/SPICE/spice-html5
spicehtml5_git_install_branch: c1e736b083ff47639ecb73ea9be4d14b5002f93f
spicehtml5_git_dest: "/opt/spicehtml5_{{ spicehtml5_git_install_branch | replace('/', '_') }}"

View File

@ -114,6 +114,8 @@
- role: "os_nova"
nova_novncproxy_git_repo: "{{ openstack_repo_git_url }}/novnc"
nova_novncproxy_git_install_branch: "{{ novncproxy_git_install_branch }}"
nova_spicehtml5_git_repo: "{{ openstack_repo_git_url }}/spice-html5"
nova_spicehtml5_git_install_branch: "{{ spicehtml5_git_install_branch }}"
nova_galera_address: "{{ internal_lb_vip_address }}"
tags:
- "os-nova"
@ -135,6 +137,8 @@
- role: "system_crontab_coordination"
tags:
- "system-crontab-coordination"
vars_files:
- defaults/repo_packages/openstack_other.yml
vars:
galera_address: "{{ internal_lb_vip_address }}"
ansible_hostname: "{{ container_name }}"

View File

@ -161,6 +161,8 @@ nova_spice_html5proxy_base_url: "{{ nova_spice_html5proxy_base_uri }}/spice_auto
nova_spice_console_keymap: en-us
nova_spice_console_agent_enabled: True
nova_spice_program_name: nova-spicehtml5proxy
nova_spicehtml5_git_repo: https://github.com/SPICE/spice-html5
nova_spicehtml5_git_install_branch: master
## Nova novnc
nova_novncproxy_proto: http

View File

@ -25,15 +25,29 @@
- nova-apt-packages
- nova-spice-apt-packages
- name: Install apt packages
- name: Remove apt packages
apt:
pkg: "{{ item }}"
state: latest
register: install_packages
until: install_packages|success
state: absent
register: remove_packages
until: remove_packages|success
retries: 5
delay: 2
with_items: nova_spice_apt_packages
tags:
- nova-apt-packages
- nova-spice-apt-packages
- name: Get package from git
git:
repo: "{{ nova_spicehtml5_git_repo }}"
dest: "/usr/share/spice-html5"
clone: "yes"
update: "yes"
version: "{{ nova_spicehtml5_git_install_branch }}"
register: git_clone
until: git_clone|success
retries: 5
delay: 2
tags:
- nova-spice-git