aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--deploy/adapters/ansible/roles/dashboard/tasks/main.yml11
-rw-r--r--deploy/adapters/ansible/roles/dashboard/templates/local_settings.py.j27
2 files changed, 11 insertions, 7 deletions
diff --git a/deploy/adapters/ansible/roles/dashboard/tasks/main.yml b/deploy/adapters/ansible/roles/dashboard/tasks/main.yml
index 289bfa83..f52d802b 100644
--- a/deploy/adapters/ansible/roles/dashboard/tasks/main.yml
+++ b/deploy/adapters/ansible/roles/dashboard/tasks/main.yml
@@ -8,6 +8,8 @@
##############################################################################
---
- include_vars: "{{ ansible_os_family }}.yml"
+ tags:
+ - horizon_theme
- name: disable auto start
copy:
@@ -26,13 +28,6 @@
state=absent
when: ansible_os_family == "Debian"
-- name: remove ubuntu theme
- action:
- "{{ ansible_pkg_mgr }} name=openstack-dashboard-ubuntu-theme state=absent"
- when: ansible_os_family == 'Debian' and not enable_ubuntu_theme
- notify:
- - restart dashboard services
-
- name: remove default apache2 config
file:
path: '{{ item }}'
@@ -78,6 +73,8 @@
when: ansible_os_family == 'Debian'
notify:
- restart dashboard services
+ tags:
+ - horizon_theme
- name: precompile horizon css
shell: |
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,