diff options
author | Monty Taylor <mordred@inaugust.com> | 2018-07-31 12:32:33 -0500 |
---|---|---|
committer | Monty Taylor <mordred@inaugust.com> | 2018-07-31 12:32:33 -0500 |
commit | 1703ed4d36b2033bf78c918ebf5c46201b70e68a (patch) | |
tree | 17e5909aef212ad98704cbbdc74ad12bc6073c2c /playbooks | |
parent | 4cb9932a4ff35068be53ee66e2d438172c6cd138 (diff) | |
download | zuul-1703ed4d36b2033bf78c918ebf5c46201b70e68a.tar.gz |
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
Diffstat (limited to 'playbooks')
-rw-r--r-- | playbooks/dashboard/multi.yaml | 17 |
1 files changed, 12 insertions, 5 deletions
diff --git a/playbooks/dashboard/multi.yaml b/playbooks/dashboard/multi.yaml index 6b04b72ef..0b8ce8293 100644 --- a/playbooks/dashboard/multi.yaml +++ b/playbooks/dashboard/multi.yaml @@ -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 |