os_horizon role fails if horizon_custom_themes is specified
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
openstack-ansible |
Fix Released
|
Low
|
Dmitriy Rabotyagov |
Bug Description
Description
===========
When horizon_
In the documentation it is stated, that custom theme should be placed on the horizon containers, but in {{ horizon_lib_dir }}/openstack_
How to reproduce
===========
Before running os_horizon role, specify some custom theme in user_variables.yml and run setup-openstack.yml playbook.
Ways to fix
===========
For instance, this could be fixed by adding additional step in horizon_
- name: Drop horizon custom themes
synchronize:
src: "{{ horizon_
dest: "{{ horizon_lib_dir }}/openstack_
times: yes
archive: no
recursive: yes
delete: yes
checksum: yes
with_dict: "{{ horizon_
notify: Restart apache2
- name: Setting horizon permissions
file:
path: "{{ horizon_lib_dir }}/openstack_
state: directory
owner: "{{ horizon_
group: "{{ horizon_
recurse: yes
with_dict: "{{ horizon_
But it requires an additional variable to be set in user_variables.yml, which is horizon_
Changed in openstack-ansible: | |
importance: | Undecided → Low |
status: | New → Confirmed |
assignee: | nobody → Amy Marrich (amy-marrich) |
Changed in openstack-ansible: | |
assignee: | Amy Marrich (amy-marrich) → Dmitriy Rabotjagov (noonedeadpunk) |
status: | Confirmed → Fix Committed |
Changed in openstack-ansible: | |
status: | Fix Committed → Fix Released |
Sorry, I've forgotten about when directive. So the correct one should be the following:
- name: Drop horizon custom themes custom_ theme_path }}/{{ item.value. theme_name }}" dashboard/ {{ item.value. theme_path }}" custom_ themes }}" custom_ themes is defined
synchronize:
src: "{{ horizon_
dest: "{{ horizon_lib_dir }}/openstack_
times: yes
archive: no
recursive: yes
delete: yes
checksum: yes
with_dict: "{{ horizon_
notify: Restart apache2
when: horizon_
- name: Setting horizon permissions dashboard/ {{ item.value. theme_path }}" system_ user_name }}" system_ group_name }}" custom_ themes }}" custom_ themes is defined
file:
path: "{{ horizon_lib_dir }}/openstack_
state: directory
owner: "{{ horizon_
group: "{{ horizon_
recurse: yes
with_dict: "{{ horizon_
when: horizon_