homer dashboard #4

Supports: focal bionic

Description

This uses Homer to provide a centralized home page for LMA stack


homer-dashboard charm

Description

Homer1 is static web server and provides one stop shop UI, allows you to place all applications and services in a single place. The application is registered to Homer dashboard via application-dashboard relation.

1. https://github.com/bastienwirtz/homer

Usage

This Homer-dashboard charm is to deploy Homer and provide config option to add sites

To register a charm to Homer dashboard, the charm must implment application-dashboard relation.

Developing

Create and activate a virtualenv with the development requirements:

virtualenv -p python3 venv
source venv/bin/activate
pip install -r requirements-dev.txt
charmcraft pack
wget https://github.com/bastienwirtz/homer/releases/latest/download/homer.zip
juju deploy ./homer-dashboard.charm --resource homer=./homer.zip

Testing

The Python operator framework includes a very nice harness for testing operator behaviour without full deployment. Just run_tests:

./run_tests

Configuration

additional_sites
(string) YAML set of lines. Each item in the list adds a site to Homer Specify name, url and group that are pipe delimited in this option to add a site. For example: '["MAAS|http://1.2.3.4:5240|Others"]'
subtitle
(string) Dashboard subtitle
title
(string) Dashboard title
Application Dashboard