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:
parent
4cb9932a4f
commit
1703ed4d36
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue