Use copy instead of symlink for multi-tenant dashboard

We currently use symlink loops to allow the multi-tenant dashboard to
work properly. With the move to swift, that's gonna be no bueno. Just
copy the html/js files instead of symlink. There's not that many of them.

Change-Id: I8a71abe4329cff817beca71e61127967b5b8aeb5
This commit is contained in:
Monty Taylor 2018-07-31 12:32:33 -05:00
parent 4cb9932a4f
commit 1703ed4d36
No known key found for this signature in database
GPG Key ID: 7BAE94BC7141A594
1 changed files with 12 additions and 5 deletions

View File

@ -1,11 +1,18 @@
- hosts: all
tasks:
- name: Make symlinks to allow multi-tenant preview to work
- name: Make tenant subdir
file:
src: .
dest: '{{ zuul.project.src_dir }}/{{ javascript_content_dir }}/{{ item }}'
state: link
state: directory
dest: '{{ zuul.project.src_dir }}/{{ javascript_content_dir }}/t'
- name: Copy the html/javascript content into subdirs
shell: |
mkdir {{ zuul.project.src_dir }}/{{ javascript_content_dir }}/t/{{ item }}
cp {{ zuul.project.src_dir }}/{{ javascript_content_dir }}/* {{ zuul.project.src_dir }}/{{ javascript_content_dir }}/t/{{ item }}
with_items:
- local
- t
- ansible
- ansible-dev
- openstack.org
- rdoproject.org