diff --git a/tasks/horizon_post_install.yml b/tasks/horizon_post_install.yml index ea82206d..9a28bfb7 100644 --- a/tasks/horizon_post_install.yml +++ b/tasks/horizon_post_install.yml @@ -45,6 +45,16 @@ notify: Restart apache2 tags: - horizon-configs + - horizon-branding + +- name: Uploading horizon custom files + copy: + src: "{{ item.value.src }}" + dest: "{{ horizon_lib_dir }}/openstack_dashboard/static/dashboard/{{ item.value.dest }}" + with_dict: "{{ horizon_custom_uploads | default({}) }}" + when: horizon_custom_uploads is defined + tags: + - horizon-branding - name: Create horizon links file: diff --git a/templates/horizon_local_settings.py.j2 b/templates/horizon_local_settings.py.j2 index 893de61e..e895fd97 100644 --- a/templates/horizon_local_settings.py.j2 +++ b/templates/horizon_local_settings.py.j2 @@ -710,3 +710,7 @@ REST_API_REQUIRED_SETTINGS = ['OPENSTACK_HYPERVISOR_FEATURES'] # For more information see: # http://tinyurl.com/anticlickjack #DISALLOW_IFRAME_EMBED = True + +{% if horizon_site_name is defined %} +SITE_BRANDING = '{{ horizon_site_name }}' +{% endif %}