aboutsummaryrefslogtreecommitdiffstats
path: root/deploy/adapters/ansible/roles/dashboard/templates
diff options
context:
space:
mode:
authorliyuenan <liyuenan@huawei.com>2017-02-06 17:12:50 +0800
committerliyuenan <liyuenan@huawei.com>2017-02-08 10:02:41 +0800
commit82fc55305e00fe535f3c23e5590700f7d7477223 (patch)
tree9b40e86b0664b8dd48993aba631ba534575f03e7 /deploy/adapters/ansible/roles/dashboard/templates
parent53916ab0e407f29b33a72c721f424284567636ce (diff)
Ease to switch themes of Horizon
JIRA: - Default Horizon theme is ubuntu. If you want to use openstack theme, you can run `export ENABLE_UBUNTU_THEME=False` before deploy. And if you want to change theme after you installed openstack, you need to run this commands: 1. access compass VM, password is root `ssh root@192.168.200.2` 2. change path: `cd /var/ansible/run/openstack_newton-opnfv2` 3. Edit the `group_vars/all` file, change `enable_ubuntu_theme` var: `enable_ubuntu_theme: False` if `enable_ubuntu_theme: True`, the Horizon theme is ubuntu, otherwise the Horizon theme is openstack. 4. run ansible playbook: `ansible-playbook -i inventories/inventory.yml HA-ansible-multinodes.yml -t horizon_theme` Change-Id: I5465107228af32a482879c8a058899494f33e2d0 Signed-off-by: liyuenan <liyuenan@huawei.com>
Diffstat (limited to 'deploy/adapters/ansible/roles/dashboard/templates')
-rw-r--r--deploy/adapters/ansible/roles/dashboard/templates/local_settings.py.j27
1 files changed, 7 insertions, 0 deletions
diff --git a/deploy/adapters/ansible/roles/dashboard/templates/local_settings.py.j2 b/deploy/adapters/ansible/roles/dashboard/templates/local_settings.py.j2
index 7278d5c2..c9530b93 100644
--- a/deploy/adapters/ansible/roles/dashboard/templates/local_settings.py.j2
+++ b/deploy/adapters/ansible/roles/dashboard/templates/local_settings.py.j2
@@ -97,6 +97,13 @@ DROPDOWN_MAX_ITEMS = 30
TIME_ZONE = "UTC"
+{% if enable_ubuntu_theme == False %}
+AVAILABLE_THEMES = [
+ ('default', 'Default', 'themes/default'),
+ ('material', 'Material', 'themes/material'),
+]
+{% endif %}
+
LOGGING = {
'version': 1,
'disable_existing_loggers': False,