Merge "Cleanup Nova console proxy git repos before updating it"

This commit is contained in:
Jenkins 2016-05-27 16:04:10 +00:00 committed by Gerrit Code Review
commit 1fc45e5465
3 changed files with 23 additions and 0 deletions

View File

@ -0,0 +1,8 @@
---
upgrade:
- Cleanup tasks are added to remove the nova console git
directories ``/usr/share/novnc`` and ``/usr/share/spice-html5``,
prior to cloning these inside the nova vnc and spice
console playbooks. This is necessary to guarantee
that local modifications do not break git clone
operations, especially during upgrades.

View File

@ -13,6 +13,14 @@
# See the License for the specific language governing permissions and
# limitations under the License.
- name: Remove old git directory
file:
path: "/usr/share/novnc"
state: "absent"
tags:
- nova-install
- nova-novnc-git
- name: Get package from git
git:
repo: "{{ nova_novncproxy_git_repo }}"

View File

@ -45,6 +45,13 @@
- nova-apt-packages
- nova-spice-apt-packages
- name: Remove old git directory
file:
path: "/usr/share/spice-html5"
state: "absent"
tags:
- nova-spice-git
- name: Get package from git
git:
repo: "{{ nova_spicehtml5_git_repo }}"