You can specify the custom logo that appears in the top left corner of each page in the VMware Integrated OpenStack dashboard.
Procedure
- Load your custom graphic file to the /home/viouser/custom/horizon/ directory in your VMware Integrated OpenStack deployment.
This directory is the default directory for graphic files in the VMware Integrated OpenStack dashboard.
- Modify the /home/viouser/custom/horizon/_styles.scss file in a text editor.
- Uncomment the .topbar parameter.
.topbar {
h1.brand a {
background-image: url(/static/themes/vmware/CUSTOM_PAGE_LOGO.png);
}
}
- Modify the .topbar parameter to reference your custom graphic file.
- Save the _styles.scss file.
- Implement the custom.yml file.
sudo mkdir -p /opt/vmware/vio/custom
sudo cp /var/lib/vio/ansible/custom/custom.yml.sample /opt/vmware/vio/custom/custom.yml
- Open the /opt/vmware/vio/custom/custom.yml file in a text editor.
- Uncomment the parameter that enables the custom.yml settings to override the default style sheet settings.
# overwrite the _styles.scss file in the VMware theme
horizon_custom_stylesheet: "/home/viouser/custom/horizon/_styles.scss"
- Uncomment the parameter that specifies the custom directory to contain the custom graphic file.
# copy all custom images (or other files) to be accessible in horizon
# IMPORTANT: this line must end with a "/" in order to place the files
# in the right location for horizon
horizon_custom_directory: "/home/viouser/custom/horizon/"
- Save the custom.yml file.
Results
Your custom logo appears in the top left corner of each dashboard page the next time you start a session.