VMware Cloud Community
ricardokatz
Contributor
Contributor
Jump to solution

BUG - Horizon customization / Ansible Playbook

While doing some labs with VIO 2.5, I've found a 'bug' on ansible playbook that doesn't allow customizing the favicon.ico of the dashboard.

On the VIOMGR, the file /var/lib/vio/ansible/roles/horizon/tasks/setup.yml, on the directive 'name: overwrite favicon' points to the file '/usr/share/openstack-dashboard/openstack_dashboard/static/themes/vmware/favicon.ico', while Openstack Horizon on kilo version always look to '/static/dashboard/img/favicon.ico'

So, the right specification of this config block shoud be:

- name: overwrite favicon

  copy: src={{ horizon_favicon | default('img/favicon.ico') }}

        dest=/usr/share/openstack-dashboard/static/dashboard/img/favicon.ico owner=horizon group=horizon mode=0644 backup=yes

  tags:

    - horizon

    - stage_config

Best rgds.

Tags (3)
0 Kudos
1 Solution

Accepted Solutions
taj1195
Enthusiast
Enthusiast
Jump to solution

Thanks - this will be fixed in the next release

View solution in original post

0 Kudos
2 Replies
taj1195
Enthusiast
Enthusiast
Jump to solution

Thanks - this will be fixed in the next release

0 Kudos
ricardokatz
Contributor
Contributor
Jump to solution

You're welcome Smiley Happy

As we're doing some customizations here (including localization to pt_BR), how can we contribute with that, as there are some missing translations and also some changes needed on the project?

An example:

- local_settings.py - We're changing the ansible template before doing the 'viocli deployment configuration', as we wan't to remove the ability to select router size

- On the documentation (and also on the custom.yml.sample), when customizing horizon we use 'viocli deployment configure --tags horizon, so only 'horizon' components get reconfigured instead of the whole environment)

- Something on 'custom.yml' that allows you to send your very own locale to Horizon

- Horizon from VMWare is missing the 'djangojs.po' in the locale folder, so even when you translate horizon, the JS from Django used still stays in English. So, some parts of the dashboard are on pt_BR, other on en_US.

0 Kudos